I am trying to round yaxis and xaxis down. For example 3843 should be 3.843 on the graph and tooltip show 3.843 k.
I have got the tooltip working but cant get it to change the graphs yaxis and xaxis value so that the graph can show all sides fully.
As you can see here: http://jsfiddle.net/kzL0phfu/
This is what xaxis looks like
yAxis: {
gridLineInterpolation: 'polygon',
lineWidth: 0,
min: 0,
gridLineColor: "#808080",
gridLineDashStyle: "Solid",
gridLineWidth: 2,
labels: {
format: '{value:.2f}',
style: {
color: '#c4c4c4',
font: '11px Trebuchet MS, Verdana, sans-serif'
}
}
}
If you want to display yAxis labels the same way, get rid of the formatter from the yAxis.labels object (then the thousand prefix will display). In case you want to display exact values of the points as yAxis labels, you can update
tickPositions
array on load event and format them adequately. Take a look at the example below.API Reference:
http://api.highcharts.com/highcharts/chart.events.load http://api.highcharts.com/highcharts/yAxis.tickPositions
Example:
http://jsfiddle.net/ojno8rx1/
Use
dataLabels
formatter
to achieve desired resultFiddle demonstration