- (void)configureLegend { CPTGraph *graph = self.hostView.hostedGraph; CPTLegend *theLegend = [CPTLegend legendWithGraph:graph]; // Add legend to graph graph.legend = theLegend; graph.legendAnchor = CPTRectAnchorRight; CGFloat legendPadding = - (self.chartView.bounds.size.width / 8); graph.legendDisplacement = CGPointMake(legendPadding, 0.0); UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:2 inSection:0]]; [cell.layer addSublayer:graph.legend]; This is what I tried: theLegend.transform = CATransform3DMakeRotation(M_PI / 180.0f, 0, 1, 0); }
CATransform3DMakeRotation(M_PI / 180.0f, 0, 1, 0);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)