score:51
Accepted answer
While I am uncertain as to why your solution doesn't work, I can propose an alternative solution.
The tooltip formatter function has access to a number of different parameters. Instead of this.x
, you could use this.point.name
.
For example:
formatter: function() {
// If you want to see what is available in the formatter, you can
// examine the `this` variable.
// console.log(this);
return '<b>'+ Highcharts.numberFormat(this.y, 0) +'</b><br/>'+
'in year: '+ this.point.name;
}
Source: stackoverflow.com
Related Query
- how to use highcharts tooltip formatter in python code
- Highcharts tooltip formatter
- Change Highcharts tooltip formatter from chart Object , after chart is rendered
- Highcharts changing tooltip datetime with formatter
- How to edit tooltip in Highcharts C# code
- highcharts tooltip formatter only shows first 8 characters in this.point.name
- How to call Highcharts tooltip formatter function from outside the config object?
- Highcharts tooltip formatter using jquery replace
- Format Highcharts chart tooltip pointFormat in formatter
- Set a different tooltip formatter for each sunburst levels - Highcharts
- Highcharts tooltip formatter function does not display values in table correct
- tooltip formatter Highcharts not work with Firefox ? - Bug?
- Setting Additional Data to highcharts tooltip with formatter doesn't work if points count exceed threshold
- Highcharts (grouped_category styling) and tooltip formatter not working
- Disable highcharts tooltip on certain lines, leave it enabled on others?
- How to use the tooltip formatter and still display chart color (like it does by default)?
- Customize tooltip and format the number to 2 decimal places of highcharts
- Highcharts tooltip overflow is hidden
- customize highcharts tooltip to show datetime
- highcharts pass multiple values to tooltip
- Disable tooltip on certain points in Highcharts
- Highcharts tooltip always on right side of cursor
- Format tooltip numbers in Highcharts
- Weird character in front of Highcharts tooltip series names
- Display tooltip for invisible series in Highcharts
- How can I use chart tooltip formatter in react-highcharts?
- Adding thousands separator for custom formatted highcharts tooltip
- Highcharts: Shared tooltip formatter this.points[i]
- Highcharts - How to display legend symbol inside the tooltip
- highcharts tooltip z-index
More Query from same tag
- How to dynamically add grouped _categories in Highcharts in MVC
- R HIGHCHARTER - How to display additional series values on a highchart hover?
- TypeError: highcharts is not a function
- Highcharts area-spline fill gradient possibly undefined error
- Automating htmlwidget: highchart graph generation for multiple time series
- Highchart show string on x-axis
- Min/Max yAxis not working correctly in Highcharts
- Is it possible to select a different color for one candlestick?
- Highcharts renderer doesnt scale
- How to get Highcharts xAxis co-ordinate?
- Apply a linear gradient to a spline with HighCharts
- Highcharts - Pie chart with negative values
- high chart sample
- Always showing tooltip on all columns in Highcharts
- Highcharts bar chart json example?
- how to load data from server with highchart inAngular 2?
- How to create constant space between bars/columns in Highcharts?
- Convert this to lazy_high_chart rails
- Turning array of JSON objects into an array for HighCharts/GoogleCharts
- How do I place the labels next to the series on a split packed bubble chart?
- Remove line dots from the area spline chart
- Create Phantomjs export server to convert highchart to image base64 string
- Highcharts: wrong labels align for inverted charts
- Highcharts Server not loading infile correctly
- Make the chart display current year in HighChart
- change background color for highchart candlestick plot
- Linear gradient in highcharts stockcharts according to full length date
- Is there a function to highlight another stat/point/column while hovering element on Highcharts?
- Inner area color for pie-donut highchart
- Ajax and Highcharts - Display 'loading' until data is retrieved, then populate chart