Hi Punkers,
1) You can get the name and value from the dataSeries dataPoints array using the SChartData protocol.
As the dataPoints array is an array of objects implementing the SChartData protocol.
You can retrieve the data point's name via the "sChartXValue" method & value from "sChartYValue" method.
Here is some sample code:
for(id<SChartData>dp in series.dataSeries.dataPoints) {
NSLog(@"Name: %@, Value: %@", [dp sChartXValue], [[dp sChartYValue] stringValue]);
}
2) You can access each legend item's label via the labels array property on the legend.
You can loop through these setting the "numberOfLines" property on it to zero.
Let me know if you have any questions.
Kind regards,
Andrew Polkinghorn.