Table of Contents

Class GraphVM

Namespace
TaleWorlds.Library.Graph
Assembly
TaleWorlds.Library.dll
public class GraphVM : ViewModel, IViewModel, INotifyPropertyChanged
Inheritance
GraphVM
Implements
Inherited Members

Constructors

GraphVM(string, string)

public GraphVM(string horizontalAxisLabel, string verticalAxisLabel)

Parameters

horizontalAxisLabel string
verticalAxisLabel string

Properties

HorizontalAxisLabel

[DataSourceProperty]
public string HorizontalAxisLabel { get; set; }

Property Value

string

HorizontalMaxValue

[DataSourceProperty]
public float HorizontalMaxValue { get; set; }

Property Value

float

HorizontalMinValue

[DataSourceProperty]
public float HorizontalMinValue { get; set; }

Property Value

float

Lines

[DataSourceProperty]
public MBBindingList<GraphLineVM> Lines { get; set; }

Property Value

MBBindingList<GraphLineVM>

VerticalAxisLabel

[DataSourceProperty]
public string VerticalAxisLabel { get; set; }

Property Value

string

VerticalMaxValue

[DataSourceProperty]
public float VerticalMaxValue { get; set; }

Property Value

float

VerticalMinValue

[DataSourceProperty]
public float VerticalMinValue { get; set; }

Property Value

float

Methods

Draw(IEnumerable<(GraphLineVM line, IEnumerable<GraphLinePointVM> points)>, in Vec2, in Vec2, float, float, bool, bool)

public void Draw(IEnumerable<(GraphLineVM line, IEnumerable<GraphLinePointVM> points)> linesWithPoints, in Vec2 horizontalRange, in Vec2 verticalRange, float autoRangeHorizontalCoefficient = 1, float autoRangeVerticalCoefficient = 1, bool useAutoHorizontalRange = false, bool useAutoVerticalRange = false)

Parameters

linesWithPoints IEnumerable<(GraphLineVM line, IEnumerable<GraphLinePointVM> points)>
horizontalRange Vec2
verticalRange Vec2
autoRangeHorizontalCoefficient float
autoRangeVerticalCoefficient float
useAutoHorizontalRange bool
useAutoVerticalRange bool

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).