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

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

Related

Google Sheets radar chart not centering axis in zero

I'm building a Radar Chart using Google Sheets.
However it insists in not centering in zero and I can't tell what crazy scale it is using in the horizontal axis. Does anyone know if there is a way to center both axis in zero? I tried many different parameters in the chart edition box but couldn't find the right one.
Example sheet here
since you are using percentages you can "round it" like this:

Changing the viewport to only show certain intevals of ios-charts linechart

I'm using the ios-charts library and I have a LineChart View that has x values that are dates from every weekday of this year. On the y-axis I have values between 0 and 25.
I would like to zoom in on different intervals on the LineChart View.
For example only show Data for week X one time and later change to show data for three months, etc etc.
I did not find anything in the documentation on how to do this. I used the "zoom" function with out any success.
(Example : Zoom and show the last 20 days on the x axis or zoom and show the last three months)
Has someone does this before?
It's a tough question and very advanced control. I guess you need to read carefully about the code, focusing on moveViewToX, and the logic and functions in ChartTransformer. Combining some tricks and calculations, you may find a way to fine-grainedly controll what you want to display.
Also, there is a property:
/// the maximum number of entried to which values will be drawn
internal var _maxVisibleValueCount = 100
may also help you.

Need Line chart With Dynamic X axis Values and data

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 .

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.

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.

Resources