score:3
Accepted answer
you can switch to the pointformatter
function to format it this way.
for example (jsfiddle):
pointformatter: function() {
var isnegative = this.y < 0 ? '-' : '';
return 'year ' + this.x.tofixed(0) + ': ' + isnegative + '$' + math.abs(this.y.tofixed(0));
}
Source: stackoverflow.com
Related Query
- Formatting Negative Numbers with Dollar Sign in Highcharts
- passing formatting JavaScript code to HighCharts with JSON
- Bug in Highcharts where negative numbers in data seem to cause bug with graph drawing
- Getting numbers on Y-axis to show up as percentages with code from a Highcharts code generator tool?
- Highcharts - Keep Zero Centered on Y-Axis with Negative Values
- Highcharts column range change color for negative numbers
- Highcharts Column chart with drilldown, remove hyperlink like formatting from x-axis labels
- Highcharts - Column With Negative Values - Column Color
- Highcharts - Issue with negative values when displaying multiple axes
- Highcharts How to get decimal point values on y-axis with big numbers
- Formatting the float numbers in Highcharts
- Highcharts - Global configuration with common code and unique data & Headings
- Formatting JSON Data with ColdFusion for HighCharts
- Highcharts - areaspline with negative values, area should be always at the bottom
- Highcharts - Area Chart - Stacking with series containing negative and positive values
- Highcharts - Negative color with 'line' type polar chart
- Highcharts multiple column chart with drilldown, correct formatting of drilldown axes
- Highcharts : How do I keep the marker formatting and make the click event fire with a 5K+ point scatter plot?
- In Highcharts drilldown charts, Custom Formatting of X-Axis label displays the label with underline even in the last level
- Highcharts vertical stacked bar chart with negative values, is it possible?
- Highcharts - Cannot set x-axes categories in column charts with negative values
- Highcharts bar with negative stack: how to position data labels
- Highcharts make positive numbers in ranges of green and negative ranges of red
- Column chart with negative values and categories on xAxis in HighCharts
- Highcharts - Pie chart with negative values
- Formatting Highcharts labels with a callback function (Formatter)
- Highcharts Semi Donut Pie with Negative Percentage
- Highcharts single horizontal stacked bar chart with data names (labels) and %-ages always shown and data numbers and series name shown on mousehover
- Highcharts complex tooltip formatting issue with embedded html link
- Highcharts series visibility with csv data source
More Query from same tag
- highcharts scroll through axis
- Highcharts series (column) names of x axis
- How to get Highcharts to keep rotated data labels within bounds of a chart?
- Formatting Highchart dateime time categories
- Plot Circles on Line Chart
- Highcharts / Highstock: How to access values at the centers of dataGroups of another series
- Issue on Disabling (Not Displaying) Highcharts Drill-up Back Button
- Highstock set different colors for different markers
- nGradient effect with negative values on highcharts
- Map appears once, but is »overlaid« with empty map quickly in Highmaps
- Highcharts 5: TypeError: Cannot read property 'chart' of undefined at e.Chart.reflow
- Custom tooltips in Highcharts diagrams
- r - automatically add y axis in highchart
- Categories overlaps when export the chart
- Format tooltip in highchart map for dynamic variables, some with commas and others with percents
- Is there anyway to hide the dataLabels for one of the stacked series in HighCharts
- How to open credits url of highcharts in new tab
- Highcharts 6 time line chart
- HighCharts. Adding series to yAxis with id
- Overlaping date labels on xaxis in Highstock
- highChart pdf download
- Population density and Circles (to represent earthquakes) on the same Map
- Highcharts set the default y column values
- Group data by weekdays in Highchart
- Angular 7 - Dynamic HighChart update
- Highcharts Non-Identical Time Series
- Highmaps Flight Routes add arrows
- Highcharts JS showing wrong colors
- How to correct mouse event in Highcharts
- Get data to NodeRed from Homepage (HighCharts)