{{!-- 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}} 
			{{#if lineTypes }}dashStyle: '{{{lookup lineTypes this}}}',{{/if}} 
			data: [{{#each data}}
				{{#if_eq highlight (lookup categories @index)}}
						{
						name:"{{{sup (sub (lookup categories @index))}}}",
						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}} 
			{{#if lineTypes }}dashStyle: '{{{lookup lineTypes this}}}',{{/if}} 
			data: [{{#each data}}
				{{#if_eq highlight (lookup categories @index)}}
						{
						name:"{{{sup (sub (lookup categories @index))}}}",
						color:HIGHLIGHT_COLOUR,
						y:{{num (lookup this ../this)}}
						},{{else}}{{num (lookup this ../this)}},
				{{/if_eq}}
			{{/each}}]

		},{{/each}} 
		{{#if_eq highlight this}}zIndex:50,{{/if_eq}}
		];
	{{#block "additional-chart-config"}}
	{{/block}}

{{/partial}}

{{!-- This denotes the template inherits from base-chart-config--}}
{{> highcharts/config/base/base-chart-config}} 
Bring highlighted series to front
Bring highlighted series to front

Set zIndex of highlighted line
