• Home
  • Nchart3D
  • NGrid
  • Customers
  • Live demo
  • Download
  • Purchase
  • Blog
  • Support
  • Login
Contact us Terms of service Privacy policy ©   Anjuta Software
I see white screen instead of a chart, what am I doing wrong?
by Konstantin at 10 Sep. 2015
  1. NChart3D FAQ
  2. Java API
  3. I see white screen instead of a chart, what am I doing wrong?

Here are some common mistakes you could have occasionally done:

  • You forgot to call updateData() of the chart or called it in the wrong place. The proper initialization sequence is: 
  1. Create series.
  2. Set data source to ALL series.
  3. Add series to the chart.
  4. Call updateData().
  • You return null of too few points from your implementation of NChartSeriesDataSource. Some series like Surface or Line need more than one point to be displayed. Check your implementation of NChartPoint[] points(NChartSeries series) method.
  • You did not retain data source for series in the member variable. This is probably the most common but also most non-obvious pitfall. Chart stores data source in a weak reference. This means, if you don't retain it somewhere outside of the chart, it will be cleaned by GC.
  • Calling beginTransaction() you forgot to call endTransaction(). You have to call beginTransaction() if you use another thread to update data, and you have to call endTransaction() in the end of your updating method.

Was this article helpful?

Unfortunately, you can't vote for this article. Please log in to be able to vote.

0 out of 0 found this helpful


Comments


No comments yet.

Please log in to place a comment.