Adding title to the PlotSymbol - ios

Is it possible to set a title instead of A CPTPlotSymbol ? I want to display the co-ordinates instead of a symbol.Here is the screen shot.I want a label where , there is a circle symbol plot in the screen shot.

Set the plotSymbol to nil to remove the symbols from the plot. You want to use data labels to label the points. If you just want to show the y-coordinate, set a labelTextStyle and labelFormatter. The plot will create and display labels automatically using the given style and number format.
If you need more complex labels (e.g., showing both x and y coordinates), you can make custom labels. Implement the -dataLabelForPlot:recordIndex: datasource method. This method can return any CPTLayer, so you have a lot of flexibility. For simple text labels, create a string with the label text and display it in a CPTTextLayer. The plot will position the label for you and keep it aligned with the data point if it moves.

Related

iOS Core Plot Get visible labels X axis

I am using Core Plot and I am really still new to it. I have searched but could not find the answer. I have allowsUserInteraction enabled. I have implemented zoom in/out with that. I want to be able to get first and last visible label on X axis every time when user has zoomed in/out. I know that there is willChangePlotRangeTo I have called there expandRangeByFactor method on my CPTMutablePlotRange. I want to be able to get every time text from first and last visible label on X axis. Is there any delegate method that I have missed?
Whenever you need to find out what the current axis labels are, call -layoutIfNeeded on the axis to make sure the labels are up-to-date and get the set of labels from the axisLabels property. Since it's a set, the collection is unordered. You'll have to search the whole set to find the first and last ones. Each label has a tickLocation that is the location along the axis and a contentLayer that is the label displayed at the location. The automatic axis labels are always CPTTextLayer objects, so you can extract the text property from there.

iOS Core Plot X Axis text + icon

Hope you people doing great.I am new to Core Plot api and need your suggestion.I want to customize x index of plot and wants to add icon and label to each index.As I have searched , I got to make policy none to index but I want to add image to each label.Help will be much appreciated.
Custom axis labels don't have to be just text. The label's contentLayer can be any CPTLayer. Depending on what you're trying to achieve, you could render your text and label into an image and use that as the fill for a CPTBorderedLayer, add the icon (in a bordered layer) as a sublayer to the text layer for the label, or even create a custom CPTLayer subclass that draws everything the way you want it.

CPTXYScatterPlot - Can I set the Z order of plot symbols?

Using Core Plot's CPTScatterPlot, I've made a bubble chart that looks like the above.
I've implemented plotSymbolWasSelectedAtRecordIndex in my delegate so I can detect when the user touches one of the bubbles. Using this screenshot as an example, I want to be able to highlight the yellow bubble and bring it in front of the red one when the user touches it. In graphical terms, I want to set the Z order of the selected CPTPlotSymbol to be higher than the others. How can I accomplish that? I'm able to highlight the selected bubble by drawing it in a different color in my symbolForScatterPlot method, but I can't seem to find a way to make it draw in front of the overlapping symbol.
Core Plot draws the data points in the order they appear in the datasource. You'll need to reorder the data so the top-most bubble is at the last index and call -reloadData on the plot to tell it to refresh its data. If you have the data points in an array, sort it by the desired z-index (back to front) and use the sorted array to feed the datasource.

Adding label to core plot chart

I want to add a label to a core plot scatter chart. It should be at a specific y value at the left edge of the chart, like that:
I tried doing it using annotation but I have a problem with dragging. When I drag the chart the annotation is also being dragged, and I would like it to always stay at the left edge.
Create your label as a plot space annotation. Use a plot space delegate to monitor changes to the xRange and update the x-value of the anchor point as needed. You can use the plot space to convert the desired x-position to the corresponding data value for the anchor point.

Highchart bubbles like with radius 1,2 look very small

I have highchart bubble chart based on eg. http://www.highcharts.com/cases/bubble.htm
The radius for bubbles is set dynamically depending on a table's column value.
The value for that column ranges from 0-20000.For larger values we will take square root.
But for values like 1,2.. we wish to use the values directly, but the bubbles appear too small.
In anyCharts we can set min and max bubble sizes and also it relatively adjusts size.
Is there any way so that bubbles are visible in highcharts.

Resources