-
Notifications
You must be signed in to change notification settings - Fork 58
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
Long legend text truncated #78
Comments
At the moment it is hard-coded as it is very difficult to calculate expected text widths in SVG from within Elixir as it doesn't have an SVG layout engine like you would in a browser. Where I've hit this in the past, I've separated the chart from the legend and combined them in my page layout. Creating a legend in your page layout could be as easy as using an HTML table with background colour set to the appropriate colour. Each plot module, e.g. |
Hi @ghenry - does the workaround suggested (rendering the legend as HTML outside of the Contex chart) work in your situation? |
Not quite yet. I've had to use |
Hello,
I'm using Contex version 0.4.0. I try to generate a point plot with a right legend in a Phoenix LiveView application. The legend appears on the right side, but long texts will be truncated. Is it possible to make them appear in full length?
thanks
The text was updated successfully, but these errors were encountered: