You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
566 B
21 lines
566 B
namespace Model.Chart; |
|
|
|
public class PointModel |
|
{ |
|
public float Interval { get; set; } = 0; |
|
public float Value { get; set; } = 0; |
|
public float TempValue { get; set; } = 0; |
|
|
|
public string GetInterval(float highestInterval, float displayScale) |
|
{ |
|
var display = Interval / highestInterval * displayScale; |
|
return ((int)display).ToString(); |
|
} |
|
|
|
|
|
public string GetValue(float highestValue, float displayScale) |
|
{ |
|
var display = Value / highestValue * displayScale; |
|
return ((int)display).ToString(); |
|
} |
|
} |