Monday, 15 September 2014

set additional data for highcharts stacked column series -



set additional data for highcharts stacked column series -

is there way set additional info (set of ids) each stacked element on column?

i need these set of ids on click of each stacked element..

$('#container').highcharts({ chart: { type: 'column' }, series: [{ name: 'john', data: [20, 30, 40] }, { name: 'jane', data: [50, 60, 60]} });

example, need associate ids {2,3,5} element 20, ids {4,6} 30, ids {1,9} 40....and these ids on click of stacked element on column. approaches highly appreciated.

thanks in advance

also need ids of points on y-axis on click of x-axis label text. there way on $('.highcharts-xaxis-labels text').click(function (event) {});

change format info this:

$('#container').highcharts({ chart: { type: 'column' }, series: [{ name: 'john', data: [{ y: 20, ids: [2, 3, 5], }, { y: 30, ids: [4, 6] }, { y: 40, ids: [1, 9] }] }, { name: 'jane', data: [50, 60, 60] }] });

to ids of clicked point utilize point.events.click callback.

highcharts

No comments:

Post a Comment