I am testing a CPPieChart
and finding that the data source delegate method -sliceLabelForPieChart:recordIndex:
is not displaying a slice label.
In addition, there is no title
property for the pie chart type.
So I figured I would test using a UILabel
instance:
UILabel *viewTitle = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 100.0f, 24.0f)];
viewTitle.text = @"Total Space";
[hostingView addSubview:viewTitle];
[viewTitle release];
Interestingly, it looks like the label coordinates are inverted and the text is mirrored:
What is the best way to resolve the coordinate system inversion and text mirroring?