score:15
Accepted answer
i think this is what you want. you can specify the tooltip attribute on each series and use valuesuffix :
tooltip: {
formatter : function() {
return this.y + ' ' + this.series.tooltipoptions.valuesuffix;
}
},
series: [{
name: 'rainfall',
type: 'column',
yaxis: 1,
data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
tooltip: {
valuesuffix: ' mm'
}
}, {
name: 'temperature',
type: 'spline',
data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6],
tooltip: {
valuesuffix: '°c'
}
}]
modified from this demo: http://www.highcharts.com/demo/combo-dual-axes.
you don't need to provide the tooltip formatter function either, but if you wanted other than the default, that is how you could access the series valuesuffix.
Source: stackoverflow.com
Related Query
- A different suffix from an array for each line on Highcharts
- A different suffix for each line on Highstock/Highcharts
- set different colors for each column in highcharts
- Set different width for each column in highcharts
- Highcharts - Different Marker for Each Point of Area Plot
- how to show different colors for each grid line using highcharts?
- Highcharts for multiple plot lines each with a different color and show tooltip?
- HTML table as data source for highstock charts using highcharts
- Set a different tooltip formatter for each sunburst levels - Highcharts
- Add a line on each bar for stacked and grouped column in HighCharts
- after using for loop all my column graphs are plotted in single color i need each bar in different color in highcharts
- javascript - Highcharts - Type Bar - How to set different starting for each bar
- Highcharts - Add a tooltip suffix value dynamically for each series
- Using different list for names of each point in highcharts in javascripts
- HighCharts turn animation false for line chart
- Highcharts graph X-axis label for different date ranges
- Population pyramid for different regions in Highcharts
- Different border for selected column in highcharts
- Highcharts shared tooltip for line series and scatter plot not working
- highcharts different colors for selected columns
- Can I assign a different radius for each pie slice using Highcharts?
- Highcharts / Highstock step line without vertical "transition" lines?
- Highcharts Line - When Y axis min is set to 0, connecting line isn't shown for consecutive 0 values
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts - xAxis label for each point
- How to customize the crosshair Line for Highcharts
- I want to add a line to each column in a Highcharts column chart
- highcharts donut pie - different color for the data than its drilldown
- Highcharts stacked column how to use different label on each category
- Passing in Id for each data item in bar chart using highcharts
More Query from same tag
- Highcharts - Grouped Scatter? (relative to Grouped Column)
- drawing two spline series with different number of values
- Highcharts in Angular - accessing the API
- Jasper Reports - HTML5 Reports(highcharts) - String Replace for Labels
- Changing the color of the point dynamically in highcharts
- How to give time labels consistently in polar highcharts?
- Show Highchart series horizontally below each other
- Highcharts: Display average hour values from a series of quarter-hourly values
- Highcharts - Replace nulls with 0
- TypeError: undefined is not a function when using highchart
- Highchart Array Xaxis
- How can i change the color of a tile which was clicked of a treemap in highcharts using react
- Highchart Treemap colorindex for fixed color values
- Removing highcharts.com credits link
- Data and tooltip not working for graph using highcharts
- Highchart Combination Chart Area Range not displaying on chart but line chart works
- highcharts stacked column overlaps when toggling the legends visibility
- Highcharts - Dyanmic graph with no initial data
- Javascript /jQuery Stock Chart API with multiple separate axis but combined interaction (pic included)?
- How to add a spikeLine to highchart?
- Highcharts line style change
- JavaScript/jQuery encapsulated variables
- HighCharts - Show categories in x axis intead of the value of x in Bubble Chart
- Highcharts, no animation when updating number of series in chart
- Persist Marker state on point click -Treemap - Highchart
- Update Highcharts tooltip with onchange
- Make stack label disabled for a column in stacked column graph in Highcharts
- How to include RSI and Volume in the same chart?
- HighStock xDateFormat month name
- Event afterSetExtremes is firing repeatedly with Highstock 1.3.0