C# Class LiveCharts.ChartFunctions

Contains useful methods to apply to a chart
Exibir arquivo Open project: beto-rodriguez/Live-Charts Class Usage Examples

Public Methods

Method Description
FromPlotArea ( double value, AxisOrientation source, ChartCore chart, int axis ) : double

Converts from chart control size to chart values.

GetTooltipData ( LiveCharts.ChartPoint senderPoint, ChartCore chart, TooltipSelectionMode selectionMode ) : TooltipDataViewModel

Returns data in the chart according to:

GetUnitWidth ( AxisOrientation source, ChartCore chart, AxisCore axis ) : double

Gets the width of a unit in the chart

GetUnitWidth ( AxisOrientation source, ChartCore chart, int axis ) : double

Gets the width of a unit in the chart

ToDrawMargin ( LiveCharts.ChartPoint point, int axisXIndex, int axisYIndex, ChartCore chart ) : CorePoint

Converts from chart values to chart draw margin size.

ToDrawMargin ( double value, AxisOrientation source, ChartCore chart, AxisCore axis ) : double

Converts from chart values to chart draw margin size.

ToDrawMargin ( double value, AxisOrientation source, ChartCore chart, int axis ) : double

Converts from chart values to chart draw margin size.

ToPlotArea ( double value, AxisOrientation source, ChartCore chart, AxisCore axis ) : double

Converts from chart values to chart control size.

ToPlotArea ( double value, AxisOrientation source, ChartCore chart, int axis ) : double

Converts from chart values to chart control size.

Method Details

FromPlotArea() public static method

Converts from chart control size to chart values.
public static FromPlotArea ( double value, AxisOrientation source, ChartCore chart, int axis ) : double
value double value to scale
source AxisOrientation axis orientation to scale value at
chart LiveCharts.Charts.ChartCore chart model to scale value at
axis int axis index in collection of chart.axis
return double

GetTooltipData() public static method

Returns data in the chart according to:
public static GetTooltipData ( LiveCharts.ChartPoint senderPoint, ChartCore chart, TooltipSelectionMode selectionMode ) : TooltipDataViewModel
senderPoint LiveCharts.ChartPoint point that was hovered
chart LiveCharts.Charts.ChartCore chart model to get the data from
selectionMode TooltipSelectionMode selection mode
return LiveCharts.Dtos.TooltipDataViewModel

GetUnitWidth() public static method

Gets the width of a unit in the chart
public static GetUnitWidth ( AxisOrientation source, ChartCore chart, AxisCore axis ) : double
source AxisOrientation axis orientation
chart LiveCharts.Charts.ChartCore chart model to get the scale at
axis AxisCore axis instance
return double

GetUnitWidth() public static method

Gets the width of a unit in the chart
public static GetUnitWidth ( AxisOrientation source, ChartCore chart, int axis ) : double
source AxisOrientation axis orientation
chart LiveCharts.Charts.ChartCore chart model to get the scale at
axis int axis index in the axes collection
return double

ToDrawMargin() public static method

Converts from chart values to chart draw margin size.
public static ToDrawMargin ( LiveCharts.ChartPoint point, int axisXIndex, int axisYIndex, ChartCore chart ) : CorePoint
point LiveCharts.ChartPoint point to scale
axisXIndex int axis orientation
axisYIndex int axis instance to scale the value at
chart LiveCharts.Charts.ChartCore chart model to scale the value at
return CorePoint

ToDrawMargin() public static method

Converts from chart values to chart draw margin size.
public static ToDrawMargin ( double value, AxisOrientation source, ChartCore chart, AxisCore axis ) : double
value double value to scale
source AxisOrientation axis orientation
chart LiveCharts.Charts.ChartCore chart model to scale the value at
axis AxisCore axis instance to scale the value at
return double

ToDrawMargin() public static method

Converts from chart values to chart draw margin size.
public static ToDrawMargin ( double value, AxisOrientation source, ChartCore chart, int axis ) : double
value double value to scale
source AxisOrientation axis orientation
chart LiveCharts.Charts.ChartCore chart model to scale the value at
axis int axis instance to scale the value at
return double

ToPlotArea() public static method

Converts from chart values to chart control size.
public static ToPlotArea ( double value, AxisOrientation source, ChartCore chart, AxisCore axis ) : double
value double value to scale
source AxisOrientation axis orientation to scale value at
chart LiveCharts.Charts.ChartCore chart model to scale value at
axis AxisCore axis model instance
return double

ToPlotArea() public static method

Converts from chart values to chart control size.
public static ToPlotArea ( double value, AxisOrientation source, ChartCore chart, int axis ) : double
value double value to scale
source AxisOrientation axis orientation to scale value at
chart LiveCharts.Charts.ChartCore chart model to scale value at
axis int axis index in collection of chart.axis
return double