jfreechart crashes when using Yahoo Finance Quotes

后端 未结 1 2009
礼貌的吻别
礼貌的吻别 2020-12-20 03:23

QUESTION RESOLVED: solution is changing to JFreeChart v1.0.15


I have a very peculiar problem.

What I have set up is a file that sends a url req

相关标签:
1条回答
  • 2020-12-20 03:44

    CandlestickDemo works for me with jfreechart v1.0.15 and either of your queries. I made two changes:

    • Construct the GUI on the event dispatch thread; failure to do so causes a data race with non-deterministic results:

      EventQueue.invokeLater(new Runnable() {
          @Override
          public void run() {
              new CandlestickDemo("GOOG").setVisible(true);
          }
      });
      
    • Omit the backing buffer, although it's probably irrelevant:

      ChartPanel chartPanel = new ChartPanel(chart, false);
      
    • Addendum: For reference, it looks like a call to ParamChecks.nullNotPermitted() was applied in r2692, replacing an explicit check, but the renderer was otherwise unchanged.

    • Addendum: Under v1.0.14, the example works correctly with the DefaultTimeline of DateAxis, which changed substantially in the interim.

    • Addendum: @David Gilbert notes that the relevant changes may be found in r2465.

    image

    0 讨论(0)
提交回复
热议问题