exception while draw many chart in CombinedDomainXYPlot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).

exception while draw many chart in CombinedDomainXYPlot

Postby sonali » Thu Dec 14, 2017 9:45 am

I am using JFreeChart 1.0.19 , while adding two or more subplot in CombinedDomainXYPlot one by one suddenly - i always got an error java.lang.ArrayIndexOutOfBoundsException: 1
at org.jfree.chart.plot.CombinedDomainXYPlot.draw(CombinedDomainXYPlot.java:511)
. i had put thread.wait function for draw one subplot chart and than other but it's not a solution.it take loading in javafx application.so how to solve it ? i need help. error is:

Code: Select all
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 1
   at org.jfree.chart.plot.CombinedDomainXYPlot.draw(CombinedDomainXYPlot.java:511)
   at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1229)
   at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1624)
   at javax.swing.JComponent.paint(JComponent.java:1056)
   at javax.swing.JComponent.paintChildren(JComponent.java:889)
   at javax.swing.JComponent.paint(JComponent.java:1065)
   at sun.swing.JLightweightFrame$3.paint(JLightweightFrame.java:307)
   at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)

same issue also at github https://github.com/jfree/jfreechart/issues/61
Posts: 13
Joined: Sat Sep 02, 2017 5:58 am
Location: india

Return to JFreeChart

Who is online

Users browsing this forum: Bing [Bot] and 10 guests