Chart reference lines not shown in Firefox and Chrome

A discussion forum for JFreeSVG (a fast, lightweight, SVG generator for the Java platform).
Post Reply
dsalathe
Posts: 1
Joined: Mon Feb 13, 2017 4:04 pm
antibot: No, of course not.

Chart reference lines not shown in Firefox and Chrome

Post by dsalathe » Mon Feb 13, 2017 4:26 pm

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

david.gilbert
JFreeChart Project Leader
Posts: 11666
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Chart reference lines not shown in Firefox and Chrome

Post by david.gilbert » Fri Feb 17, 2017 6:03 am

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).
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited

Post Reply