-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More than one HTML line break not working if chart.renderer.label is used for displaying a label in the chart #21
Comments
Your issue is that if you do more than one line-break, it only displays one, right? |
Tried to use the latest |
Got it working with a small trick! Just add two empty spaces between two br |
For reference, the issue is probably located somewhere between the SVG generation of HTML content and the Here's the SVG text part without your fix: <text x="8" style="color:#ffffff;fill:#ffffff;" y="20"><tspan>Max observation</tspan><tspan x="8" dy="15">Next row</tspan> With your fix: <text x="8" style="color:#ffffff;fill:#ffffff;" y="20"><tspan>Max observation</tspan><tspan x="8" dy="15"> </tspan><tspan x="8" dy="15">Next row</tspan></text> Both rendered with My guess is that The second snippet fixes things by introducing an empty
|
Example:
http://jsfiddle.net/pscjzhe4/212/
The text was updated successfully, but these errors were encountered: