C# Class LiveCharts.ChartFunctions

Contains useful methods to apply to a chart
Afficher le fichier Open project: beto-rodriguez/Live-Charts Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat double

GetTooltipData() public static méthode

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
Résultat LiveCharts.Dtos.TooltipDataViewModel

GetUnitWidth() public static méthode

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
Résultat double

GetUnitWidth() public static méthode

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
Résultat double

ToDrawMargin() public static méthode

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
Résultat CorePoint

ToDrawMargin() public static méthode

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
Résultat double

ToDrawMargin() public static méthode

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
Résultat double

ToPlotArea() public static méthode

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
Résultat double

ToPlotArea() public static méthode

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
Résultat double