I want to create a dialplot.
The problem is, that StandardDialScale allows 0 for the parameter "MajorTickIncrement". Of course, it doesn't make sense, but if MajorTickIncrement is 0, JFreeChart.createBufferedImage(width, height) will hang up in an infinite loop, more precisely in Dialplot.draw().
So no image will be drawn, but there is also no hint or exception, that 0 isn't allowed!
here my code:
DialPlot plot = new DialPlot();
StandardDialScale standarddialscale = new StandardDialScale(wayne, wayne, wayne,0,wayne)
JFreeChart chart = new JFreeChart(plot);
BufferedImage img = chart.createBufferedImage(width, height);
Log in to post a comment.