score:18
default white-space
is set nowrap
, you should change it to normal
.
.highcharts-tooltip span {
height:auto;
width:140px;
background-color:green;
overflow:auto;
white-space:normal !important; // add this line...
}
score:4
Simply add this to the chart options:
tooltip:{
shared: false,
useHTML: true
}
Then add the following to your CSS:
.highcharts-tooltip span {
height:auto !important;
width:140px !important;
max-width:140px !important;
overflow:auto !important;
white-space:normal !important;
}
You are good to go! ;-)
score:5
If you only want to change the white-space
behavior ofthe tooltip for a single chart and/or seperately control the style for each individual chart, you can use the following approach:
tooltip: {
useHTML: true,
formatter: function() {
return "<div style='width: 400px; white-space:normal;'>" + this.points[0].point.yourDataPointValue + "</div>";
}
}
Note that you can/should use use a class name versus an inline style if you want to reuse the same style for multiple tooltips.
Source: stackoverflow.com
Related Query
- adapting text to highchart tooltip max width
- Highcharts- Tooltip HTML max width
- Highchart Add text after value tooltip
- Highchart tooltip variable width
- HighChart Tooltip addition text and value
- Allow text input (write-back) from highchart tooltip
- highchart How can I get width parent element for calculated x max in xAxis
- Make a text box appear on dragging point in highchart or an editable tooltip
- Highchart specific width stack column bar graph
- How to display highchart series line marker symbol from tooltip formatter?
- HighChart Shared Tooltip Number Formatting
- Adding new data to highchart tooltip
- highchart total in tooltip
- Tooltip text alignment in Highcharts for 'direction: rtl'
- Scatter tooltip of highchart is not being displaying
- Border Styles for the Highchart tooltip
- Commas in tooltip of Highchart
- How to change series legend text color in HighChart chart?
- how to reset Highchart chart width in percentage on Button click
- How to modify Highcharts x-axis tooltip text
- Highchart axis max with multiple axes
- Need to apply background color to each legend text highchart
- Highchart js max 15 plots to be plotted
- highcharts tooltip text align
- Adding a custom tooltip to a bubble chart / highchart
- max Y Axis value in a Highchart
- Highchart - tooltip for legends
- Highchart donut pie - Is there a max number of slices
- Angular HighChart in tabs width
- HighChart Tooltip Position can be changed?
More Query from same tag
- Dynamically changing Highcharts Theme through Jquery code not working
- Formatting jSON response for Highcharts
- PHP JSON Highcharts load database result
- Matomo: report for single url
- keep column in front of spline lines in highchart
- Change from graph/Highcharts to maps/Highmaps in my API
- Highcharts dual y-axis on the left (column chart)
- Highcharts pie charts individual sections are not receive focus. Tooltips are not displayed on focus
- Highcharts xaxis datetime issue
- How to support a legacy style option (like series.color) in Highcharts CSS styled mode
- Highchart drilldown to simultaneous multiple series and y-axis
- Prevent source to load twice
- Update Highcarts series data form axios request in VueJS
- Displaying a minimalist Highcharts stockchart
- highstock chart move selection on keybord arrow key press
- Date format issue in highcharts
- Highchart : How to use images when using "General drawing"
- Highchart: Adding flags to a line chart
- How to Plot chart from two different webform Submission data And Wand to Display annotated point
- Add label in into square Highcharts Gant
- Export highcharts animation as video
- Highcharts not displaying tooltip title properly
- Highcharts: highlighting line chart series on legend hover
- Set second axis in proportion of first axis
- Highcharts showing ticks number, instead of date
- Highchart data from ajax its not working for me
- Turn series and plot bands on/off using API
- How to make the percentage symbol smaller than the number?
- alternative way to change hovered series and its points properties in a HighCharts chart
- HighCharts load data via Json