You must be logged in to post your query.
Home › Forums › Chart Support › How to restrict width of shared tooltip when data series has a long name?
Tagged: maxWidth, name, tooltip
Hi,
I have a line chart that has a long name for the data series, so when using a shared tooltip, the tooltip exceeds the width of the screen on mobile devices (width of 270px).
See my example here: https://jsfiddle.net/pigottm/06gh5ncy/22/
You can see how the tooltip exceeds the black-coloured area.
How do I set a max width for the tooltip, while still using the names of each data series?
Kind regards Michael
Michael,
You can customize the width of tooTip by adding style to ‘canvasjs-chart-tooltip’ class. Please take a look at this JSFiddle.
— Vishwas R Team CanvasJS
You must be logged in to reply to this topic. Login/Register