Comments (1)
i solved this by adding the graphs PCLineChartView as subview of the root view with the setTag: method. upon refresh i just remove the old graph subviews by using their tags with removeFromSuperView and setup the graph with the refereshed data and add it as subview again.
// define a tag for your graphview
#define GRAPH_A 100
- (void) paintChart
{
// remove previous graph view from root view with using the views tag
[[self.view viewWithTag:GRAPH_A] removeFromSuperview];
// init your graph
// and set the graphs settings
_tlineChartView = [[PCLineChartView alloc] initWithFrame:CGRectMake(10,10,cellWidth,cellHeight)];
.. setup your graph here...
// add a tag to the graphview
[_tlineChartView setTag:GRAPH_A];
// add graph to view
[self.view addSubview:_tlineChartView];
}
hope this helps
from iosplot.
Related Issues (20)
- Major issue with Graphing HOT 3
- Autoresizing PieChart HOT 1
- How to add a chart to UIScrollView? HOT 3
- Why use NSUinteger in PCLineChartView.m line 105
- Line Chart crashes when it's changed to the Landscape mode HOT 11
- Need to initialise it with data
- Does not compile clean
- In some special case: it doesnt look good
- Crash in LineChart HOT 2
- PieChart cause crash when I touch screen
- minValue and maxValue issues HOT 1
- Set chart width
- Legent titles are not displayed
- Example Project Errors Occurred for Me HOT 1
- Typos in readme
- App crashes while pushing to the Line Graph Screen for second or third time. HOT 1
- ios 8 issue
- Xcode 64 bit compatibility
- JSONKit.h's file not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iosplot.