score:131
this can be set with the thousandsep
(api) global option.
highcharts.setoptions({
lang: {
thousandssep: ','
}
});
score:0
this way work for me.
i use angular 10 and i did this for tooltip and yaxis.
for yaxis use numberformat
:
labels: {
format: '{value}',
style: {
color: highcharts.getoptions().colors[0]
},
formatter: function() {
return highcharts.numberformat(this.value, 3);
}
},
and for tooltip :
{point.y:.f}
score:4
in case you want to show numbers without commas and spaces.
eg. by default 9800 shows as 9 800.
if you want 9800 to be shown as 9800
you can try this in tooltip:
tooltip: {
pointformat: '<span>{point.y:.f}</span>'
}
score:5
this way worked with me.
i configured in yaxis option.
yaxis: {
labels: {
formatter: function() {
return highcharts.numberformat(this.value, 2);
}
}
}
Source: stackoverflow.com
Related Query
- Highcharts: Format all numbers with comma?
- Why code of Horizonal line(y-axis) on a single in Highcharts get applied to all other charts integrated with Webdatarocks
- Getting numbers on Y-axis to show up as percentages with code from a Highcharts code generator tool?
- Format tooltip numbers in Highcharts
- HighCharts - number format with $ in its short form
- Highcharts label format with tickPositioner in a datetime x Axis
- Highcharts How to get decimal point values on y-axis with big numbers
- Highcharts - Global configuration with common code and unique data & Headings
- passing formatting JavaScript code to HighCharts with JSON
- Highcharts line chart all points disappear when have more than one points with same X Axis
- Time format with Highcharts
- Highcharts JS: Download all charts of current site with one click
- Highcharts single horizontal stacked bar chart with data names (labels) and %-ages always shown and data numbers and series name shown on mousehover
- highcharts with scrollbar, how to display all items on download image?
- Highcharts series visibility with csv data source
- Highcharts format labels on grouped stacked bar diagram with $ k, M for currency and 'hrs' for time
- Highcharts How to update all series with ajax
- Highcharts tooltip format different with series
- Formatting Negative Numbers with Dollar Sign in Highcharts
- Format number data with comma and unit in Highchart
- How to have multiple highcharts with different series data in vuejs without repeating code
- Generate highcharts from v-for not populating all graphs with data
- Format used for date in Highcharts - Line with markers chart type
- Bug in Highcharts where negative numbers in data seem to cause bug with graph drawing
- Highcharts - Format X axis with 2 digit hours in 24 hour format
- Highcharts cloud issue with data source when duplicating chart
- Highcharts do not hold all the values of stacked columns chart with data time axes
- How To Merge Highcharts Legends With All Unique Entries
- Highcharts bad rendering with slightly big numbers
- highcharts datalabel per point with different format
More Query from same tag
- highcharts with lots of data render blank in pdf use wicked_pdf
- tooltip text is out of block in Chrome
- Is there a way to load data into Highstock without the use of PHP?
- Move highcharts legend outside of chart container
- HighChart Tooltip word-break issue
- How can I update the data in highcharts for both x axis & y axis?
- Using highcharts for Rails (via LazyHighCharts), is there a tooltip for yDateFormat for having datetime data on the Yaxis?
- Highcharts: Nothing change happens whatever I setting formatter:function() or set tooltip{enabled:false}
- Scrolling over highcharts graph
- HighCharts Time series missing points?
- Can not deploy a chart file from spagobi studio
- Highcharts JSON decimal data format issue
- Highcharts - Get crossing point of crossing series
- HighCharts: Logarithmic Scale for Horizontal Bar Charts
- Trying to Fade out all other Columns when a user selects one column
- same js highcharts display not the same
- HighChart plots not displaying correctly on small div
- How to set alignment of individual x-axis labels in Highcharts
- Highcharts - adding a question mark where data is missing in a bar chart
- Configure Highstock export server in Play framework (java) 1.2.5
- programatically fire a click event for a point on highchart scatter plot
- How to update Highcharts with React JS via input fields
- highstock series.stochastic "k d" in different colors
- Some series are not visible in a time serie chart with columns
- Highcharts - change color of only clicked column
- R highcharter, valuebox, eventreactive didn't work together in shiny
- set data for navigation in highstock
- How to create a row isolated heatmap with Highcharts
- Highchart Donut and Bar Chart
- Highcharts - Show a string category label in the tooltip for a line graph