{{!-- Charts with an array of series data inherits from this base template --}}
{{!-- NOTE: the data output needs to be a continous string and whitespace (line returns) break it --}}
{{#partial "chart-config"}}
{{#if isStacked }}// reverse legend order for stacked bars with a descending order{{/if}} 
	options.series=[{{#each series}}{
			name: "{{{sub (sup this)}}}",
			{{#if_eq highlight this}}color:HIGHLIGHT_COLOUR,{{/if_eq}}
			{{#if isStacked }}legendIndex: (-{{@index}}),{{/if}} 
			data: [{{#each data}}{{#if_eq highlight label}}
			{
			name:"{{{sup (sub (lookup this label))}}}",
			color:HIGHLIGHT_COLOUR,
			y:{{num (lookup this ../this)}}
			},{{else}}{{num (lookup this ../this)}},{{/if_eq}}{{/each}}]
		},{{/each}} ];
	{{#block "additional-chart-config"}}
	{{/block}}

{{/partial}}

{{!-- This denotes the template inherits from base-chart-config--}}
{{> highcharts/config/base/base-chart-config}} 
{{!-- Charts with an array of series data inherits from this base template --}}
{{!-- NOTE: the data output needs to be a continous string and whitespace (line returns) break it --}}
{{#partial "chart-config"}}
{{#if isStacked }}// reverse legend order for stacked bars with a descending order{{/if}} 
	options.series=[{{#each series}}{
			name: "{{{sub (sup this)}}}",
			{{#if_eq highlight this}}color:HIGHLIGHT_COLOUR,{{/if_eq}}
			{{#if isStacked }}legendIndex: (-{{@index}}),{{/if}} 
			data: [{{#each data}}
			{{#if_eq highlight (lookup this headers.0)}}
			{
			name:"{{{sup (sub (lookup this (lookup this headers.0)))}}}",
			color:HIGHLIGHT_COLOUR,
			y:{{num (lookup this ../this)}}
			},{{else}}{{num (lookup this ../this)}},{{/if_eq}}
			{{/each}}]
		},{{/each}} ];
	{{#block "additional-chart-config"}}
	{{/block}}

{{/partial}}

{{!-- This denotes the template inherits from base-chart-config--}}
{{> highcharts/config/base/base-chart-config}} 
Fix highlight in bar chart
Fix highlight in bar chart
