XuniLinePlotter Class Reference

Inherits from XuniBasePlotter : NSObject
Declared in LinePlotter.h

Overview

XuniLinePlotter class.

  chart

gets or sets chart.

@property FlexChart *chart

Discussion

gets or sets chart.

Declared In

LinePlotter.h

  dataInfo

gets or sets dataInfo.

@property XuniDataInfo *dataInfo

Discussion

gets or sets dataInfo.

Declared In

LinePlotter.h

  hitTester

gets or sets the chart element at specified point.

@property XuniHitTester *hitTester

Discussion

gets or sets the chart element at specified point.

Declared In

LinePlotter.h

  stacking

gets or sets the stacking type of chart.

@property XuniStacking stacking

Discussion

gets or sets the stacking type of chart.

Declared In

LinePlotter.h

  rotated

gets or sets whether the direction of plotting is inverted.

@property BOOL rotated

Discussion

gets or sets whether the direction of plotting is inverted.

Declared In

LinePlotter.h

  hasSymbols

gets or sets whether the chart is rotated.

@property BOOL hasSymbols

Discussion

gets or sets whether the chart is rotated.

Declared In

LinePlotter.h

  hasLines

gets or sets whether the chart has lines.

@property BOOL hasLines

Discussion

gets or sets whether the chart has lines.

Declared In

LinePlotter.h

  isSpline

gets or sets whether the chart is spline.

@property BOOL isSpline

Discussion

gets or sets whether the chart is spline.

Declared In

LinePlotter.h

– init:dataInfo:hitTester:

Initialize an instance for LinePlotter.

- (id)init:(FlexChart *)chart dataInfo:(XuniDataInfo *)dataInfo hitTester:(XuniHitTester *)hitTester

Parameters

chart

the chart.

dataInfo

the dataInfo.

hitTester

the chart element at specified point.

Return Value

an instance of LinePlotter.

Discussion

Initialize an instance for LinePlotter.

Declared In

LinePlotter.h

– drawSymbol:x:y:borderWidth:symbolSize:fillColor:borderColor:symbolMarker:series:pointIndex:dataPoint:type:

Draw symbols with parameters.

- (void)drawSymbol:(NSObject<IXuniRenderEngine> *)engine x:(double)x y:(double)y borderWidth:(double)borderWidth symbolSize:(double)symbolSize fillColor:(UIColor *)fillColor borderColor:(UIColor *)borderColor symbolMarker:(XuniMarkerType)symbolMarker series:(NSObject<IXuniSeries> *)series pointIndex:(int)index dataPoint:(XuniChartDataPoint *)dataPoint type:(XuniPlotElementLoadingType)type

Parameters

engine

the specified engine.

x

the specified X value.

y

the specified Y value.

borderWidth

the specified borderWidth.

symbolSize

the specified symbolSize.

fillColor

the specified fillColor.

borderColor

the specified borderColor.

symbolMarker

the specified symbolMarker.

series

the specified series.

index

the specified index.

dataPoint

the metadata that makes up this symbol to draw.

type

The symbol type.

Discussion

Draw symbols with parameters.

Declared In

LinePlotter.h

– getAnimationInfo:time:duration:count:

Get animation info with parameters..

- (void)getAnimationInfo:(NSObject<IXuniSeries> *)series time:(double *)time duration:(double *)duration count:(int *)count

Parameters

series

the specified series.

time

the specified time.

duration

the specified duration.

count

the specified count.

Discussion

Get animation info with parameters..

Declared In

LinePlotter.h

– getPointsForPointMode:Y:time:duration:type:rotated:

Get points for point mode.

- (NSDictionary *)getPointsForPointMode:(NSArray *)xs Y:(NSArray *)ys time:(double)time duration:(double)duration type:(id<IXuniEaseAction>)type rotated:(BOOL)rotated

Parameters

xs

the array of X value.

ys

the array of Y value.

time

the time.

duration

the duration.

type

the ease type.

rotated

whether rotated.

Return Value

a NSDictionary object.

Discussion

Get points for point mode.

Declared In

LinePlotter.h

– getUpdatedPointsDictionary:axisX:axisY:index:dx:dy:prevVals:time:duration:type:rotated:

Get updated points dictionary.

- (NSDictionary *)getUpdatedPointsDictionary:(XuniNotifyCollectionChangedEventArgs *)updateEventArgs axisX:(NSObject<IXuniAxis> *)ax axisY:(NSObject<IXuniAxis> *)ay index:(int)iser dx:(NSArray *)dx dy:(NSArray *)dy prevVals:(NSArray *)prevVals time:(double)animationTime duration:(double)animationDuration type:(id<IXuniEaseAction>)type rotated:(BOOL)rotated

Parameters

updateEventArgs

the specified update EventArgs.

ax

the specified axis X.

ay

the specified axis Y.

iser

the specified index.

dx

the specified x data.

dy

the specified y data.

prevVals

the specified previous values.

animationTime

the specified animation time.

animationDuration

the specified animation duration.

type

the specified type.

rotated

whether rotated.

Return Value

NSDictionary object.

Discussion

Get updated points dictionary.

Declared In

LinePlotter.h

– getScaleForPointMode:time:duration:dataInfoIndex:lastDataInfo:

Get scale for point mode.

- (double)getScaleForPointMode:(id<IXuniEaseAction>)type time:(double)time duration:(double)duration dataInfoIndex:(int)dataInfoIndex lastDataInfo:(BOOL)lastDataInfo

Parameters

type

the specified type.

time

the specified time.

duration

the specified duration.

dataInfoIndex

the specified index dataInfo.

lastDataInfo

whether is last data info.

Return Value

a double value.

Discussion

Get scale for point mode.

Declared In

LinePlotter.h