FlexChartBase Class Reference

Inherits from XuniView : UIView
Conforms to IXuniPalette
Declared in FlexChartBase.h

Overview

The base control from which FlexChart derives.

  tooltip

Gets or set the tooltip of Chart.

@property (nonatomic) XuniChartTooltip *tooltip

Discussion

Gets or set the tooltip of Chart.

Declared In

FlexChartBase.h

  plotMargin

These properties affect the space between the axis/plot area rectangle vs the outer rectangle made up of the header/footer/legend.

@property (nonatomic) UIEdgeInsets plotMargin

Discussion

These properties affect the space between the axis/plot area rectangle vs the outer rectangle made up of the header/footer/legend.

Declared In

FlexChartBase.h

  padding

Gets or sets the padding of the chart.

@property (nonatomic) UIEdgeInsets padding

Discussion

Gets or sets the padding of the chart.

Declared In

FlexChartBase.h

  collectionView

Gets the IXuniCollectionView that contains the chart data.

@property (nonatomic) XuniCollectionView *collectionView

Discussion

Gets the IXuniCollectionView that contains the chart data.

Declared In

FlexChartBase.h

  delegate

Gets or sets the delegate for handling notifications.

@property (nonatomic, weak) id<FlexChartDelegate> delegate

Discussion

Gets or sets the delegate for handling notifications.

Declared In

FlexChartBase.h

  isEnabled

Gets or sets whether interaction is enabled for the user.

@property (nonatomic) IBInspectable BOOL isEnabled

Discussion

Gets or sets whether interaction is enabled for the user.

Declared In

FlexChartBase.h

  binding

Gets or sets the name of the bound property to be plotted on the Y axis.

@property (nonatomic) IBInspectable NSString *binding

Discussion

Gets or sets the name of the bound property to be plotted on the Y axis.

Declared In

FlexChartBase.h

  bindingX

Gets or sets the name of the bound property to be plotted on the X axis.

@property (nonatomic) IBInspectable NSString *bindingX

Discussion

Gets or sets the name of the bound property to be plotted on the X axis.

Declared In

FlexChartBase.h

  legend

Gets or sets the chart legend object.

@property (nonatomic) XuniLegend *legend

Discussion

Gets or sets the chart legend object.

Declared In

FlexChartBase.h

  header

Gets or sets the chart header.

@property (nonatomic) IBInspectable NSString *header

Discussion

Gets or sets the chart header.

Declared In

FlexChartBase.h

  footer

Gets or sets the chart footer.

@property (nonatomic) IBInspectable NSString *footer

Discussion

Gets or sets the chart footer.

Declared In

FlexChartBase.h

  headerFont

Gets or sets the font of the chart header.

@property (nonatomic) UIFont *headerFont

Discussion

Gets or sets the font of the chart header.

Declared In

FlexChartBase.h

  headerTextColor

Gets or sets the text color of the chart header.

@property (nonatomic) IBInspectable UIColor *headerTextColor

Discussion

Gets or sets the text color of the chart header.

Declared In

FlexChartBase.h

  headerTextAlignment

Gets or sets the horizontal alignment of the chart header.

@property (nonatomic) XuniHorizontalAlignment headerTextAlignment

Discussion

Gets or sets the horizontal alignment of the chart header.

Declared In

FlexChartBase.h

  footerFont

Gets or sets the font of the chart footer.

@property (nonatomic) UIFont *footerFont

Discussion

Gets or sets the font of the chart footer.

Declared In

FlexChartBase.h

  footerTextColor

Gets or sets the text color of the chart footer.

@property (nonatomic) IBInspectable UIColor *footerTextColor

Discussion

Gets or sets the text color of the chart footer.

Declared In

FlexChartBase.h

  footerTextAlignment

Gets or sets the horizontal alignment of the chart footer.

@property (nonatomic) XuniHorizontalAlignment footerTextAlignment

Discussion

Gets or sets the horizontal alignment of the chart footer.

Declared In

FlexChartBase.h

  palette

Gets or sets an array with default colors used for displaying each series.

@property (nonatomic) NSArray *palette

Discussion

Gets or sets an array with default colors used for displaying each series.

Declared In

FlexChartBase.h

  legendToggle

Gets or sets whether clicking legend items should toggle the series visibility.

@property (nonatomic) IBInspectable BOOL legendToggle

Discussion

Gets or sets whether clicking legend items should toggle the series visibility.

Declared In

FlexChartBase.h

  textColor

Gets or sets the text color of the chart.

@property (nonatomic) IBInspectable UIColor *textColor

Discussion

Gets or sets the text color of the chart.

Declared In

FlexChartBase.h

  backgroundColor

Gets or sets the background color of the chart.

@property (nonatomic) IBInspectable UIColor *backgroundColor

Discussion

Gets or sets the background color of the chart.

Declared In

FlexChartBase.h

  borderColor

Gets or sets the border color of the chart.

@property (nonatomic) IBInspectable UIColor *borderColor

Discussion

Gets or sets the border color of the chart.

Declared In

FlexChartBase.h

  borderWidth

Gets or sets the border width of the chart.

@property (nonatomic) IBInspectable double borderWidth

Discussion

Gets or sets the border width of the chart.

Declared In

FlexChartBase.h

  plotAreaBackgroundColor

Gets or sets the background color of the plot area.

@property (nonatomic) IBInspectable UIColor *plotAreaBackgroundColor

Discussion

Gets or sets the background color of the plot area.

Declared In

FlexChartBase.h

  selectedBorderColor

Gets or sets the selected border color of the chart.

@property (nonatomic) IBInspectable UIColor *selectedBorderColor

Discussion

Gets or sets the selected border color of the chart.

Declared In

FlexChartBase.h

  selectedBorderWidth

Gets or sets the selected border width of the chart.

@property (nonatomic) IBInspectable double selectedBorderWidth

Discussion

Gets or sets the selected border width of the chart.

Declared In

FlexChartBase.h

  selectedDashes

​Gets or sets the selected border dashes of the chart.

@property (nonatomic) NSArray<NSNumber*> *selectedDashes

Discussion

​Gets or sets the selected border dashes of the chart.

Declared In

FlexChartBase.h

  selectionMode

Gets or sets the selection mode of the chart.

@property (nonatomic) XuniSelectionMode selectionMode

Discussion

Gets or sets the selection mode of the chart.

Declared In

FlexChartBase.h

  itemsSource

Gets or sets the chart data source for all series.

@property (nonatomic) NSMutableArray *itemsSource

Discussion

Gets or sets the chart data source for all series.

Declared In

FlexChartBase.h

  chartType

Gets or sets the chart type of all data series.

@property (nonatomic) XuniChartType chartType

Discussion

Gets or sets the chart type of all data series.

Declared In

FlexChartBase.h

  selection

Gets or sets the chart selection.

@property (nonatomic) XuniSeries *selection

Discussion

Gets or sets the chart selection.

Declared In

FlexChartBase.h

  selectionIndex

Gets or sets the index of the chart selection.

@property (nonatomic) int selectionIndex

Discussion

Gets or sets the index of the chart selection.

Declared In

FlexChartBase.h

  renderEngine

Gets the render engine.

@property (readonly) XuniRenderEngine *renderEngine

Discussion

Gets the render engine.

Declared In

FlexChartBase.h

  rectChart

Gets the rect of chart.

@property (readonly) XuniRect *rectChart

Discussion

Gets the rect of chart.

Declared In

FlexChartBase.h

  rectHeader

Gets the rect of chart header.

@property (readonly) XuniRect *rectHeader

Discussion

Gets the rect of chart header.

Declared In

FlexChartBase.h

  rectFooter

Gets the rect of chart footer.

@property (readonly) XuniRect *rectFooter

Discussion

Gets the rect of chart footer.

Declared In

FlexChartBase.h

  isSeriesVisibilityAnimation

@exclude.

@property (nonatomic) BOOL isSeriesVisibilityAnimation

Discussion

@exclude.

Declared In

FlexChartBase.h

  chartRendered

Occurs on chart rendering finished

@property XuniEvent<XuniEventArgs*> *chartRendered

Discussion

Occurs on chart rendering finished

Declared In

FlexChartBase.h

– raiseChartRendered

Creates event args and calls onChartRendered.

- (void)raiseChartRendered

Discussion

Creates event args and calls onChartRendered.

Declared In

FlexChartBase.h

  chartRendering

Occurs before chart rendering starts

@property XuniEvent<XuniEventArgs*> *chartRendering

Discussion

Occurs before chart rendering starts

Declared In

FlexChartBase.h

– raiseChartRendering

Creates event args and calls onChartRendering.

- (void)raiseChartRendering

Discussion

Creates event args and calls onChartRendering.

Declared In

FlexChartBase.h

  chartTapped

Occurs before chart rendering starts

@property XuniEvent<XuniPointEventArgs*> *chartTapped

Discussion

Occurs before chart rendering starts

Declared In

FlexChartBase.h

– raiseChartTapped:

Creates event args and calls onChartRendering.

- (void)raiseChartTapped:(XuniPoint *)point

Parameters

point

the x/y coordinates the tapped event occured.

Discussion

Creates event args and calls onChartRendering.

Declared In

FlexChartBase.h

– invalidate

Causes the chart to be redrawn.

- (void)invalidate

Discussion

Causes the chart to be redrawn.

Declared In

FlexChartBase.h

– refresh

Refresh the chart.

- (void)refresh

Discussion

Refresh the chart.

Declared In

FlexChartBase.h

– initInternals

Initialize some properties of chart.

- (void)initInternals

Discussion

Initialize some properties of chart.

Declared In

FlexChartBase.h

– bindChart

Binds the chart to the current data source.

- (void)bindChart

Declared In

FlexChartBase.h

– clearSeries

Clear series.

- (void)clearSeries

Discussion

Clear series.

Declared In

FlexChartBase.h

– prepareForRender

Prepare something for rendering the chart.

- (void)prepareForRender

Discussion

Prepare something for rendering the chart.

Declared In

FlexChartBase.h

– render:

Render the chart.

- (void)render:(XuniRenderEngine *)engine

Parameters

engine

the engine.

Discussion

Render the chart.

Declared In

FlexChartBase.h

– toControl:y:

Convert the point to the control.

- (XuniPoint *)toControl:(double)x y:(double)y

Parameters

x

x value of the point.

y

y value of the point.

Return Value

the point of the control.

Discussion

Convert the point to the control.

Declared In

FlexChartBase.h

– getLegendDesiredSize:isVertical:

Gets legend size desired

- (XuniSize *)getLegendDesiredSize:(XuniRenderEngine *)engine isVertical:(BOOL)isVertical

Parameters

engine

an object of XuniRenderEngine.

isVertical

whether is vertical.

Return Value

legend size desired.

Discussion

Gets legend size desired

Declared In

FlexChartBase.h

– renderLegend:atPoint:isVertical:areas:

Render the legend.

- (void)renderLegend:(XuniRenderEngine *)engine atPoint:(XuniPoint *)point isVertical:(BOOL)isVertical areas:(NSMutableArray *)areas

Parameters

engine

an object of XuniRenderEngine.

point

Point in chart data coordinates.

isVertical

whether is vertical.

areas

areas of series.

Discussion

Render the legend.

Declared In

FlexChartBase.h

– drawTitle:rect:title:isFooter:

Draw the title of the footer or header.

- (XuniRect *)drawTitle:(XuniRenderEngine *)engine rect:(XuniRect *)rect title:(NSString *)title isFooter:(BOOL)isFooter

Parameters

engine

the engine.

rect

the frame of the footer or header.

title

the title of the footer or header.

isFooter

whether is footer.

Return Value

return a frame.

Discussion

Draw the title of the footer or header.

Declared In

FlexChartBase.h

+ contains:point:

Judge whether the point is in the rect.

+ (BOOL)contains:(XuniRect *)rect point:(XuniPoint *)point

Parameters

rect

the frame.

point

the point in control coordinates that this HitTestInfo refers to.

Return Value

return a boolean value.

Discussion

Judge whether the point is in the rect.

Declared In

FlexChartBase.h

+ renderText:text:pos:halign:valign:size:

Render the text.

+ (void)renderText:(XuniRenderEngine *)engine text:(NSString *)text pos:(XuniPoint *)pos halign:(XuniHorizontalAlignment)halign valign:(XuniVerticalAlignment)valign size:(XuniSize *)sz

Parameters

engine

the engine.

text

the text of items.

pos

the position of text.

halign

the horizontal alignment.

valign

the vertical alignment.

sz

the size of the text.

Discussion

Render the text.

Declared In

FlexChartBase.h

+ renderText:text:pos:halign:valign:

Render the text.

+ (void)renderText:(XuniRenderEngine *)engine text:(NSString *)text pos:(XuniPoint *)pos halign:(XuniHorizontalAlignment)halign valign:(XuniVerticalAlignment)valign

Parameters

engine

the engine.

text

the text of items.

pos

the position of text.

halign

the horizontal alignment.

valign

the vertical alignment.

Discussion

Render the text.

Declared In

FlexChartBase.h

+ renderRotatedText:text:pos:halign:valign:center:angle:size:

Render the rotated text.

+ (void)renderRotatedText:(XuniRenderEngine *)engine text:(NSString *)text pos:(XuniPoint *)pos halign:(XuniHorizontalAlignment)halign valign:(XuniVerticalAlignment)valign center:(XuniPoint *)center angle:(double)angle size:(XuniSize *)sz

Parameters

engine

the engine.

text

the text of items.

pos

the position of text.

halign

the horizontal alignment.

valign

the vertical alignment.

center

the center of the text.

angle

the angle of the text.

sz

the size of the text.

Discussion

Render the rotated text.

Declared In

FlexChartBase.h

+ renderRotatedText:text:pos:halign:valign:center:angle:

Render the rotated text.

+ (void)renderRotatedText:(XuniRenderEngine *)engine text:(NSString *)text pos:(XuniPoint *)pos halign:(XuniHorizontalAlignment)halign valign:(XuniVerticalAlignment)valign center:(XuniPoint *)center angle:(double)angle

Parameters

engine

the engine.

text

the text of items.

pos

the position of text.

halign

the horizontal alignment.

valign

the vertical alignment.

center

the center of the text.

angle

the angle of the text.

Discussion

Render the rotated text.

Declared In

FlexChartBase.h

– findAxis:

Find axis use axis name.

- (XuniAxis *)findAxis:(NSString *)axisName

Parameters

axisName

the specified axis name.

Return Value

an axis.

Discussion

Find axis use axis name.

Declared In

FlexChartBase.h