score:21
If you want to add custom tooltip text for a button, you must add a 'lang' object in the chart's options, and define a key with some text.
Then use that key in the custom button's definition.
var chart = new Highcharts.Chart({
chart: {
// your chart options
},
lang: {
yourKey: "Custom button tooltip text"
},
exporting: {
buttons: {
yourCustomButton: {
text: "Click me",
_titleKey: "yourKey",
onclick: function() {
// button functionality goes here
}
}
}
}
});
score:0
I'd like to add that the lang option works even if the button is not custom. For instance,
lang: {
myKey: "Hello"
},
exporting: {
buttons: {
exportButton: {
_titleKey:"myKey",
enabled: true
},
printButton: {
enabled: true
}
}
}, ...
gives you the possibility to translate the tooltips of the export and print button.
score:2
Add directly _titleKey
, see: http://jsfiddle.net/x36qR/1/
Source: stackoverflow.com
Related Query
- Tooltip on custom button in Highcharts
- Adding thousands separator for custom formatted highcharts tooltip
- Custom Highcharts Context Menu Button Appearing in Every Chart on Page
- How to enable or disable a Highcharts tooltip when a button is clicked?
- Highcharts applying custom style to context button using css class
- Highcharts custom renderer chart and tooltip
- Highcharts create custom button in config
- Toggle the custom button text using highcharts
- Highcharts - how to set custom content in point tooltip (popup) on 3D scatter chart or how to customize point tooltip information?
- highcharts show additional custom data in tooltip
- Highcharts 5 tooltip colour with custom css class
- Highcharts angular.js custom tooltip
- How to edit tooltip in Highcharts C# code
- how to use highcharts tooltip formatter in python code
- Add a custom text tooltip that differs from point to point in Highcharts
- Highcharts custom tooltip positioner
- Display custom tooltip on highcharts legend
- Highcharts custom tooltip
- Add custom data on tooltip of Highcharts donut graph
- Dynamically Take input from text-areas in a jquery ui custom pop up box for Tooltip in highcharts
- highcharts / stock charts custom toolbar button text / title
- Dynamically add and remove custom export button in highcharts
- adding a custom variable as a tooltip in highcharts scatter chart
- Toggle Show/Hide on Highcharts custom export button
- Set (Sigma) Symbol as custom button text in Highcharts
- Can I make a custom tooltip on a highcharts drilldown?
- Custom hover / tooltip data on highcharts network chart
- Custom color & tooltip for a single bar in Highcharts histogram
- Highcharts : remove custom legend tooltip from export
- Add tooltip in highchart custom button
More Query from same tag
- Adding Multiple HighCharts on one screen Angularjs
- Prevent Absolute positioned Div from overlapping
- two dimensional array highcharts Active Record Associations
- HighChart - Group data by day
- Highmaps/Highcharts setData not changing
- How to make legend labels to bring out the series of a pie chart and not make them disappear when label is clicked in HighCharts?
- Using Highmaps mapbbuble and datalabels. Datalabels are not going out of screen when zoomed
- Adding text dynamically to point popups in highcharts.js
- how to get last value shown yAxis highcharts in current version in a simple way?
- Loading HighStock with RequireJS
- I hope to display empty day to 0 in highcharts
- Highcharts > Tooltip > Crosshair: How to set horizontal crosshair to snap to CLOSE in OHLC series?
- View box in High chart
- Highstock Options in Yii Booster Highcharts
- Returning JSON file with cURL to use data in a HighCharts stock chart
- How to create chart with highchart in which bar doesn't start from 0 in y axis?
- pushing dynamic data to stacked percentage column in highcharts
- HighChart: Stacked Column Chart with dropdown
- Highcharts: create multiple series grouped my month and year using JSON data
- Variable changing value at each function call
- Highcharts multiple legends
- highcharts exporting - Java approach, maxWait property
- Unable to download a file using java
- Highcharts Sparkline in reactjs without Jquery
- R shiny Highcharts tooltip: adding average as extra variable
- How to modify style properties in an Highcharts tag with Angular?
- Find special chart on highcharts
- Highcharts display grid over plot with z-index
- How to get Highcharts xAxis co-ordinate?
- Highchart event click runtime error in Ionic