Highcharts tooltip not showing on unsort data -



Highcharts tooltip not showing on unsort data -

i have unsort info (on x-axis) , using highcharts display graph. knew x-axis must sort show tooltip highcharts document wrote. info not sorted reasons, meet problem before, please give idea/solution show tooltip without sort x-axis data. if sort, info wrong.

my js:

var info = [ [5.875, -20], [8.1875, -30], [8.875, -40], [9.5, -50], [10.125, -60], [10.5, -70], [10.875, -80], [11.375, -90], [11.6875, -100], [11.875, -110], [12.0625, -120], [12.625, -130], [12.4375, -140], [12.625, -150], [12.5, -160], [12.4375, -170], [12.4375, -180], [12.375, -190], [12.25, -200], [12.1875, -210], [11.9375, -220], [11.625, -230], [11.5, -240], [11.125, -250], [10.75, -260], [10.625, -270] ]; $('#container').highcharts({ series: [{ data: info }] });

or please check here http://jsfiddle.net/vuong/jedlowyv/4/

thank much , have nice day.

you have 2 options:

sort data: http://jsfiddle.net/jedlowyv/5/ use scatter series linewidth: http://jsfiddle.net/jedlowyv/6/ (not: tooltip show when hover 1 of markers directly)

highcharts tooltip

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -