score:11
Accepted answer
Compare http://jsfiddle.net/BNFe5/
The difference is here:
yAxis: {
labels: {
formatter: function() {
return this.value;
}
}
},
score:2
If you are using thousands and millions in one chart, check this out.
yAxis: {
labels: {
formatter: function () {
if (this.value.toFixed(0) >= 1000000) {
return '$' + this.value.toFixed(0) / 1000000 + 'M';
} else {
return '$' + this.value.toFixed(0) / 1000 + 'K';
}
}
},
title: {
text: ''
}
},
score:5
For Converting your yaxis values into 1k,2k,3k,4k,etc:
yAxis:
{
labels:
{
formatter: function()
{
return Math.round(this.value/1000) + 'k';
}
}
},
Source: stackoverflow.com
Related Query
- How to display highchart y axis with constistant data
- how to display highchart graphic with data defined in html table?
- how to display the highchart data with data serialize from a form using button onclick?
- how to pass multi sereis data with dual y axis chart in highchart
- how to hide highchart x - axis data values
- How to populate a Highcharts axis with string formatted data from a PHP array
- How can I force ticks/grid lines on a Highcharts datetime X axis to arbitrarily line up with data points?
- how to pass datalabels along with data to show it in tooltip in highchart
- How to display last data point value in a tag on Y Axis in line chart of highChartjs
- How to make the Y Axis values not start from 0 in highcharts? How to display forcefully display the last category data on X axis in HighCharts ?
- How to push data into highchart with just one decimal place?
- Display latest data as a pointer on axis in Highchart
- Highchart Line chart – data series with multiple axis - 2nd series placed in the middle of X axis
- How to redraw highchart series with json data value?
- How to display top 3 data label in piechart highchart
- Issue with highchart data display when parsing JSON data
- How to have multiple highcharts with different series data in vuejs without repeating code
- How to make pie chart with data border radius in highchart
- How to display a highchart with more than one line?
- How to display custom data on mouseover of column chart in highchart in addition to series data?
- Setting the length of the X-Axis of a Highchart to be 24 hours from time of first data point with less than 24 hours of data to display
- how to load data from server with highchart inAngular 2?
- display a linear highchart with data from database
- Invert axis on highchart diagram with data from table
- How do I fix highchart to display series correctly with a special marker
- How to render Gantt Highchart from data source
- Highchart DateTime Axis: How to display non existent data as 0 or gap
- display highchart with dynamic data
- How to display basic line graph in Highchart for multiple categories' data from csv?
- How to display extra data in highcharts bubble chart tooltip with datetime x-axis
More Query from same tag
- HighCharts stacked column chart : 'plotOptions.series.stacking' are incompatible types
- Highcharts connectNulls with dotted line
- HighCharts/HighStocks: Pie graph with Highstock
- Angular HighChart Update
- How to change export button to custom icon in highcharts
- Highchart - Add dynamic data to the bar
- Apply a linear gradient to a spline with HighCharts
- Changing color of spline lines based on values in HighCharts
- Multiple Series in HighStock navigator Angular
- Highchart dates do not work for some data series
- How to use Highcharts Gantt chart in angular?
- How to hide data in a series in highcharts boxplot?
- Torn off point markers on Navigator highcharts
- Highcharts: negative value in hebrew
- How to use image on label depending on data?
- How to add multiple axis without multiple series on highchart?
- Highcharts angular 2 with observables http request
- How to export CSV and XLS with external button in Highcharts
- Highcharter - move data label to top of column
- highcharts 3d scatter chart: displaying categories
- Highcharts: Stop the circle marker from shrinking in size on mouseover
- Pass Chart Mouse events to formatted labels
- highcharts - pulling data from HTML but converting the strings to number
- Make a boxplot in highchart with a date object in the x axis
- Label hover function in highchart
- Highcharts scrollbar not appearing
- Is there a way to add a click event to open a url in a highcharter plot without shiny?
- how to add tool tip to legends in highcharts
- Highcharts random realtime with detecting too high value
- Update Stockchart yAxis Labels Changes Positions and Label Precision