piaoyongren / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

reloadData with empty DataSource does not clear graph #234

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have a button to cycle through a days worth of data, it loads data 
for the next day, then calls reloadData on TableView's and 
CPGraphHostingView's which use that data. 
This works fine, as long as there is data for the next day. 
If there isn't data (numberOfRecordsForPlot returns 0), the graph 
doesn't reload. It just doesn't refresh, the prior days data keeps 
displaying.

Original issue reported on code.google.com by hivehi...@gmail.com on 20 Dec 2010 at 11:18

GoogleCodeExporter commented 8 years ago
What version of Core Plot are you using? This may be a duplicate of issue #226.

Original comment by eskr...@mac.com on 20 Dec 2010 at 11:58

GoogleCodeExporter commented 8 years ago
Oh, I've searched only for open issues. So yeah, it's a duplicate. I'm using 
0.2.2

Original comment by hivehi...@gmail.com on 20 Dec 2010 at 12:04

GoogleCodeExporter commented 8 years ago
Issue #226 was fixed after we built the 0.2.2 release. Either pull the latest 
source with Mercurial and build your own SDK/framework or wait for the next 
release.

Original comment by eskr...@mac.com on 20 Dec 2010 at 10:51

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
If you're using 0.2.2 make sure you set your CPGraphHostingView collapsesLayers 
property to NO. Setting it to YES seems to cause this problem. You can do so by 
calling:

[graphView setCollapsesLayers:NO];

On your CPGraphHostingView object

Hope this helps!

Original comment by movinpi...@gmail.com on 26 Apr 2011 at 9:32