javascript - Highcharts ; x-axis scaling issue -
i have following lines of code of highchart:
xaxis : { "categories" : [100, 200, 250, 300, 400] } the categories not equi-distant. highchart api draws points equal distance. gives wrong interpretation user. want points drawn such distances, give user correct information. distance shown between 2 points should proportionate actual distance between 2 points.
mentioning them in categories makes them equidistant.
if want have them graded accordingly need change data array
if data categories: [100, 200, 250, 300, 400] data: [10, 45, 64, 34 ,91] change them data: [[100,10], [200,45], [250,64], [300,34] ,[400,91]] work when x axis has values(integers) not text.
don't mention categories
hope you
Comments
Post a Comment