javascript - Highcharts : trouble with axis Label -
javascript - Highcharts : trouble with axis Label -
i can't explain behavior : sometimes, charts displaying first or lastly label of axis lot of decimals.
in graph options, here how yaxis :
yaxis : [{ alternategridcolor: "white", gridlinecolor : "#e3e3e3", linewidth: 2, ticklength : 5, linecolor : '#a5a5a5', tickwidth : 2, ticklength : 5, tickcolor : '#a5a5a5', labels : { style : { fontweight : 'bold', fontsize: '10px' }, x : -labelmargin }, tickpixelinterval: 20 }, //more axis ]
how prepare ? help appreciated.
you did not mentioned should value of labels uses naive value them float number generated partition perhaps.
i suggest handle labels manually this:
labels: { formatter: function () { homecoming math.floor(this.value) } }
as can see utilize floor()
function remove decimals.
javascript highcharts axis-labels
Comments
Post a Comment