Hi, I need TimeCoordinates with range of 1 second, and i get the following exception when i try to draw a table with such coordinates:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException at java.util.GregorianCalendar.add(Unknown Source) at com.quinncurtis.chart2djava.TimeAxis.defineMillisecondAxisTicks(TimeAxis.java:953) at com.quinncurtis.chart2djava.TimeAxis.defineTimeAxisTics(TimeAxis.java:1472) at com.quinncurtis.chart2djava.TimeAxis.drawTimeAxis(TimeAxis.java:1594) at com.quinncurtis.chart2djava.TimeAxis.draw(TimeAxis.java:1625) at com.quinncurtis.chart2djava.ChartView.drawObject(ChartView.java:735) at com.quinncurtis.chart2djava.ChartView.preRender(ChartView.java:1336) at com.quinncurtis.chart2djava.ChartView.draw(ChartView.java:1410) at com.quinncurtis.chart2djava.ChartView.paintComponent(ChartView.java:337) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source) at javax.swing.JComponent.paintDoubleBuffered(Unknown Source) at javax.swing.JComponent._paintImmediately(Unknown Source) at javax.swing.JComponent.paintImmediately(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
If i give the coordinates 2-seconds-apart start time & end time it works and for 1 second it doesn't. I need 1 second scale in my application. Is there anything i can do?
We did find a problem with a 1-second range for the time axis. We made a fix and uploaded the modified libraries. You can download the updated version using your original download links.
The minimum range you can have for a time axis is 0.2 seconds. After that you should be using a CartesianCoordinates and a LinearAxis instead of TimeCoordinates and TimeAxis.
Hi again, I downloaded the new jars, and now when i try to build the chart with the 1 second range, there is no exception but the application is completely stuck until i kill it from outside. it doesn't happen when i build a chart with 10 seconds range. Could you please check it? Thank you, Sylvie.
We tested the software using our time coordinate zoom example program and initially could not reproduce a problem. We did find a problem if you were displaying the first second of the day with a range of 1 second.
We believe we fixed it and have sent you replacement qcchart2djava.jar files. If you can't receive large attachments you should re-download the software using your original download link.