Shady 0 Report post Posted June 25, 2012 Hi, I am having some display issue when rendering a chart in curve mode: The line isn't painted in some cases. It seems the scale of the Y-axis is not well adjusted to draw the inferior part of the line. Here is a simplified example that shows my problem: import java.awt.Dimension;import javax.swing.JFrame;import com.softwarefx.chartfx.desktop.Chart;import com.softwarefx.chartfx.desktop.Gallery;public class Example { public static void main(String[] args) { Chart c = new Chart(); double vals[] = { 0, 0, 0, 0, 0, 134.5, 269, 404 }; c.getData().setPoints(vals.length); for(int i = 0; i < vals.length; i++) { c.getData().set(0, i, vals); } c.getData().setSeries(1); c.setGallery(Gallery.CURVE); JFrame frame = new JFrame(); frame.getContentPane().add©; frame.setSize(new Dimension(800, 600)); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); }} In this example, the line between points 4 and 5 is not drawn on screen since inferior to the minimum (although the y-axis is left to adjust according to values). Is there a way to make sure the curve line is always completely displayed on screen without having to force the minimum (since my values change dynamically)? Thanks for your help, Shady Quote Share this post Link to post Share on other sites