How to display the custom number in X and Y axis?
I need to display my custom subject name in x axis, Marks in Y axis.
Set a labelTextStyle and labelFormatter on the plot to create automatic data labels. This will work with any plot type.
Related
I am plotting my x axis labels vertically, and using the following line to provide a little space under the axis
axisSet.xAxis.axisConstraints = [CPTConstraints constraintWithLowerOffset:40.0];
But now the vertical length of the label bumps into the first value on the y axis. Is there a way to compress the graph a little so the first value on the y axis begins a little higher? Thanks.
Adjust the axis' labelAlignment and/or labelOffset to reposition the labels.
Is it possible to position tick marks in the center of an axis?
I don't have enough reps to post images, but here's the general idea...
--|--|--|--|--|--|--|--|--|--|--
Use the tickDirection property of the axis. The default (CPTSignNone) centers the tick marks on the axis as shown in your drawing.
I want to use an image rather than labels on my x or y axis of scatter graph.
Please help how to do it
Thanks.
Use custom axis labels (via the CPTAxisLabelingPolicyNone labeling policy). Use a CPTBorderedLayer for the label content and set the fill to a CPTFill created using the desired image.
I'm using a scatter series in Shinobi Charts but points with maximum and minimum x and y values are being truncated because they're at the edge of the plot area?
How can I add a small margin to the plot area so I can clearly see the scatter points and none are truncated. I realise that I can set the range of each axis myself but that gets into nasty math to work out what a 5px margin would be over the lowest/highest values etc.
There are 2 properties on SChartAxis which can help you: rangePaddingLow and rangePaddingHigh. These values are absolute values, and in the scale of the axis.
For example, if you have an axis which has an automatic range of (0,100), then the following would update the range to (-5, 105):
axis.rangePaddingLow = #5;
axis.rangePaddingHight = #5;
As the axis scale updates, these padding values will be maintained.
Helo,
Is it possible to put a line on zero value of y axis ?
Because i have negatives values so i changed orthogonal value of my axis to the lowest one on my datasource.
Thanks
Make second x-axis and position it at zero. You can leave off the labels and tick marks to just get the axis line. See the axis demo in the Plot Gallery app for an example of how to add additional axes to a Core Plot graph.