我想改变圆环图drawDirection财产Shinobi chart甜甜圈系列:如何更改drawDirection?
这就是我所指的部分代码:
typedef NS_ENUM(NSInteger, SChartRadialSeriesDrawDirection) {
SChartRadialSeriesDrawDirectionAntiClockwise,
SChartRadialSeriesDrawDirectionClockwise
};
@interface SChartDonutSeries : SChartRadialSeries
#pragma mark -
#pragma mark Drawing the series
/** @name Drawing the series */
/** The direction in which data is drawn around the centre of the plot.
- SChartRadialSeriesDrawDirectionClockwise: Configures the direction in which the data is drawn around the center of the plot to be clockwise.
- SChartRadialSeriesDrawDirectionAntiClockwise: Configures the direction in which the data is drawn around the center of the plot to be anticlockwise.
This defaults to `SChartRadialSeriesDrawDirectionAntiClockwise`.
*/
@property (nonatomic) SChartRadialSeriesDrawDirection drawDirection;
@end
这是我的代码:
let donutSeries = SChartDonutSeries()
donutSeries.drawDirection = SChartRadialSeriesDrawDirection.SChartRadialSeriesDrawDirectionClockwise
我怎么能在swift 3中做到这一点?
谢谢!我希望有更快的文档。 – Besat