You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm the main dev of XChart, and someone requested that I implement a vector graphics export function like Gral. (BTW, nice project!)
I was able to change a lot of my underlying code to get things compatible with vectorgraphics2d and the SVG export works great. The PDF and ESP are not so great though. I've attached some screenshots. Can you perhaps guess why the rendering isn't working properly?
Thanks, Tim
Imported from trac ticket #16, created by timmolter on 04-26-2014 at 17:16, last modified: 04-26-2014 at 17:16
The text was updated successfully, but these errors were encountered:
I figured this out. It's not an issue with vectorgraphics2d but with Swing. When switiching storkes from a dashed stroke to a solid stroke you need to use:
new BasicStroke(1, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 10.0f, new float[] { 3.0f, 0.0f }, 0.0f);
and not:
new BasicStroke(1, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL);
I guess the dash doesn't get updated in the resulting Shape object, but setting the dash array to 3.0f, 0.0f is a hack to make it draw a solid line.
Hi fellow charting lib developer!
I'm the main dev of XChart, and someone requested that I implement a vector graphics export function like Gral. (BTW, nice project!)
I was able to change a lot of my underlying code to get things compatible with vectorgraphics2d and the SVG export works great. The PDF and ESP are not so great though. I've attached some screenshots. Can you perhaps guess why the rendering isn't working properly?
Thanks, Tim
Imported from trac ticket #16, created by timmolter on 04-26-2014 at 17:16, last modified: 04-26-2014 at 17:16
The text was updated successfully, but these errors were encountered: