C# Класс LiveCharts.ChartFunctions

Contains useful methods to apply to a chart
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

FromPlotArea() публичный статический Метод

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
Результат double

GetTooltipData() публичный статический Метод

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
Результат LiveCharts.Dtos.TooltipDataViewModel

GetUnitWidth() публичный статический Метод

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
Результат double

GetUnitWidth() публичный статический Метод

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
Результат double

ToDrawMargin() публичный статический Метод

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
Результат CorePoint

ToDrawMargin() публичный статический Метод

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
Результат double

ToDrawMargin() публичный статический Метод

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
Результат double

ToPlotArea() публичный статический Метод

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
Результат double

ToPlotArea() публичный статический Метод

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
Результат double