How implement scrollable and zoomable Line Graph in Ios - ios

Hi I am trying to implement line chart. Chart having following features:
=> it has scrollable features.
=> it should be zoomable.
chart should be zoomable like that
if x axis having value week1 week2 so on ... and if zoom the graph it become scrollable and value of x axis becomes 1,2,3,4,5,6 . values becomes 1,2,3.... on the tapped places.
=> and also i want to show x and y value of tapped point.
I trying to google a lot but unable to Find such library where I got exact Solution of my problem. I have invested more than two days.
Any buddy found right solution of my problem please guide me. Thanks

Have you looked at Core Plot? It can do what you want. It includes several example apps to get you started. If you have specific questions, ask them here on StackOverflow and use the core-plot tag.

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:

Increase gap between two point labels in line chart

I have integrated a line chart in my project using Charts library and have been using it for a while now. It was working fine with few data points, however as the number of data have been increased since then the point labels (x-axis) are overlapping with each other. Is there a way to display the data-point labels without getting overlapped?
you can solve this issue using labelCount property. also, you can set using setLabelCount property, I hope this helps you.
xAxis.labelCount = 5
xAxis.setLabelCount(5, force: true)
See this post for more info: https://github.com/danielgindi/Charts/issues/1969
I was not able to find how to increase the gap between two labels on x-axis (top) however I have managed to improve the issue a little by displaying them vertically so that they are at-least visible on chart.
lineChartView.xAxis.labelRotationAngle = 270

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.

ios-charts visible data in LineChartView

I'm trying to figure out how to calculate which data indices (along x axis) are in range after panning/zooming the chart.
For example, when I zoom in on my linechart, I want to be able to update a tableview to only show the details for the data points that are visible.
I've searched the code and documentation i can find, to no avail.
There is highestVisibleXIndex and lowestVisibleXIndex should help you. I hope I would see your issue earlier, just another weekend not on SO

customizing Highcharts problems. New

I have got a couple of problems with highcharts, I am using a heat map.
The subtitle is covered by the chart, how could I solve that?.
How could I set a max length for each cell? When I have got just a few elements it is really big.
I dont want to show any colour in the background.
I dont want to show the values of the cells.
1) Looks like possibly bug, reported here: https://github.com/highslide-software/highcharts.com/issues/3255
2) have you tried to use max parametr on axis? http://jsfiddle.net/kJpS6/3/
3) See the option http://jsfiddle.net/kJpS6/2/
4) You can disable it by xAxis labels

Resources