I have sample code for question here: http://jsfiddle.net/MuydK/
The problem relates to legend title in the key under chart are changing after I have drilled in and out.
They should stay as
“actual” and
“target”
And are changing to “series 1” and “series 2”.
$(function () {
var chart;
$(document).ready(function () {
var colors = Highcharts.getOptions().colors,
categories1 = ['1011', '1112', '1213', '1415'],
name1 = 'Actual',
I think I may be missing something in drilldown configuration or setChart code?
I got the same problem with a couple if charts based on code posted above.
Many Thanks
Edit2: The problem is in your else statement in the function bellow.
Instead get rid of
name1 = 'Actual'and only havedata1anddata2and addnameandcolorto them then you could do like this insteadI hope you understand, but it will be easier if you build
data1/2as a highcharts object, and just add the drilldown part to it. So you can change;to:
Edit: When you are doing operations bellow you should not set redraw to
true, it will be much faster. The same goes for adding the series. You do not need to callchart.redraw()until you have removed and added the charts. And removing stuff is easier backwards. So change:To