Need Line chart With Dynamic X axis Values and data - ios

I am working on iPhone applications.I Need Line chart With Dynamic X axis Values and data For showing temperature values in graph with scroll view enabled to scroll horizontally to view the further graph as the graph extends with time.
Y Axis Labels : 1,2,3,4,5,6,7,8,9,10;
X Axis labels : date1, date2, date3, date4, date5, date6, ...etc.
(Should increase dynamically for every 30 seconds)
Graph data is : Temperature on the x axis date (should increase dynamically with x axis)
The main Point is graph values should not submerge in same length, The graph should be extend out of screen and the user should be able to scroll horizontally to see the whole graph values.
thanks in advance.

I highly prefer below external library for the chart in iOS developement.
Which includes following types of graphs.
LineChart (with legend, simple design)
Combined-Chart (bar- and linechart in this case)
BarChart
BarChart (grouped DataSets)
Horizontal-BarChart
PieChart (with selection, ...)
ScatterChart
CandleStickChart
RadarChart
Find the iOS Github library from here .

Related

ios Charts 3.0 - X - axis labels(with date values) alignment issue

I am having trouble to align x-axis labels especially while displaying dates.
Can anyone please share demo project as I have to use multiple date formats in same graph?
Example image : as below

Live updating of chart in iOS app

My app is fetching some market live data from a web service and displaying them on a chart.
On the X axis I would have time of an event. The problem is I can have several results from the same moment or within one second, or I can have gaps there - so it's not the case that I can have a set number of x points and for each one of them - a single point on my chart. Also points on the chart won't be distributed equally on against the X axis.
I'm also looking for something that could be updated as the data flows in - including the scaling of the X and Y axis. It would be perfect if I could scroll and zoom in/out (like on a UIScrollView) the whole chart.
Is there a ready-made solution for such a case? Preferably one that allows for some good customization of its looks? I'm wondering if ios-charts could help in that?
For you first question, ios-charts does not support well for the time-style x axis, if the time range spans widely. ios-charts distribute equally for each value on x axis, so to reflect the real time-style axis, you have to generate many x values as each second/hour/day etc, but you don't add any y value for these x values.
for the second question, ios-chats can update the chart by moveViewToX, but the animation couterpart is not implemented yet. ios-charts one great feature is it supports zoom/scale for axis-based charts (excluding pie chart, radar chart). The zoom/scale is implemented via CG.
For other potential charts, if you can use swift, then there is SwiftChart, CorePlot (seems a little old) on github, and Shinobi Chart (not free)
I guess you could give a try with ios-charts, search/open issues to see if anything you needed is carried out.

How to view a fixed number of points on timechart of achartengine?

For LineChart I used
XYMultipleSeriesRenderer mRenderer=new XYMultipleSeriesRenderer();
mRenderer.setXAxisMin(0);
mRenderer.setXAxisMax(30);
When I use the same for TimeChart, my graph disappears, only the layout is visible. Is there any other way I can display a fixed number or points on my graph?
This is because the X axis range for a time chart is much wider, given by the values returned from the getTime() method in Date.

Core Plot set custom label for y axis [duplicate]

This question already has answers here:
How do you provide labels for the axis of a Core Plot chart?
(2 answers)
Closed 9 years ago.
i'm new at using Core Plot.
So what i actually want is to set custom labels for the y axis like using an array with different activities like volleyball, soccer and swimming and to this the x axis has dates. Implement the date array to Core Plot was no problem, but now i want, like i told, to have an custom y axis and for every activity i want to show a horizontal bar with the time that soccer or another takes. The Bar Chart should show me which time an activity takes, like soccer starts at 08:00 am and ends 11:00.
i hope you can help me!
Use the CPTAxisLabelingPolicyNone labeling policy for the y-axis and create your own axis labels with the desired label text. There are several demos in the Plot Gallery example app including the labeling policy and the bar chart in the composite plot.

Draw a vertical line in Core Plot?

I have an iPhone project that displays some data of the past 24h in Core Plot. x axis shows the time, y axis the data value.
Now I want to highlight a day change by drawing a vertical line at midnight. How can this be done?
Add a scatter plot to your graph to draw the vertical line. Just give it two data points—one for each end of the line.

Resources