Hello
I am using JFreeChart and JFreeSVG to create SVG charts to display in a browser.
When I create the SVG, some horizontal and vertical reference lines are not shown in the browser. This highly depends on the browsers zoom factor.
When I set to the default of 100% zoom, many lines are not shown, when I zoom in to 200% or more, all lines are finally shown.
I tested it on Firefox and Chrome, both have the same problem. IE11 does not have this problem, all reference lines are always shown on all zoom levels.
Any help is greatly appreciated.
I required, I can attach the generated svg here.
Best Regards
Dieter
Chart reference lines not shown in Firefox and Chrome
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Chart reference lines not shown in Firefox and Chrome
Did you try changing the shapeRendering attribute? I guess it might help:
http://www.jfree.org/jfreesvg/javadoc/o ... ng.String-
If not, I would try making sure the Stroke used for the gridlines in JFreeChart is set to a thickness of 1.0 (I think the default is 0.5 or something like that).
http://www.jfree.org/jfreesvg/javadoc/o ... ng.String-
If not, I would try making sure the Stroke used for the gridlines in JFreeChart is set to a thickness of 1.0 (I think the default is 0.5 or something like that).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program