forked from Live-Charts/Live-Charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChartPoint.cs
188 lines (145 loc) · 5.4 KB
/
ChartPoint.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
//The MIT License(MIT)
//Copyright(c) 2016 Alberto Rodriguez & LiveCharts Contributors
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//The above copyright notice and this permission notice shall be included in all
//copies or substantial portions of the Software.
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
//SOFTWARE.
using LiveCharts.Definitions.Charts;
using LiveCharts.Definitions.Points;
using LiveCharts.Definitions.Series;
using LiveCharts.Dtos;
namespace LiveCharts
{
/// <summary>
/// Defines a point in the chart
/// </summary>
public class ChartPoint
{
#region Cartesian
/// <summary>
/// Gets the X point value
/// </summary>
public double X { get; internal set; }
/// <summary>
/// Gets the Y point value
/// </summary>
public double Y { get; internal set; }
#endregion
/// <summary>
/// Gets the Gantt x start value
/// </summary>
public double XStart { get; set; }
/// <summary>
/// Gets the Gantt y start value
/// </summary>
public double YStart { get; set; }
internal bool EvaluatesGantt { get; set; }
#region Gantt
#endregion
#region Weighted
/// <summary>
/// Gets the Weight of the point
/// </summary>
public double Weight { get; internal set; }
#endregion
#region stacked
/// <summary>
/// Gets where the stacked value started from
/// </summary>
public double From { get; internal set; }
/// <summary>
/// Gets where the stacked value finishes
/// </summary>
public double To { get; internal set; }
/// <summary>
/// Get the total sum of the stacked elements
/// </summary>
public double Sum { get; internal set; }
/// <summary>
/// Get the participation of the point in the stacked elements
/// </summary>
public double Participation { get; internal set; }
/// <summary>
/// gets the stacked participation of a point
/// </summary>
public double StackedParticipation { get; internal set; }
#endregion
#region Financial
/// <summary>
/// Gets the Open value of the point
/// </summary>
public double Open { get; internal set; }
/// <summary>
/// Gets the High value of the point
/// </summary>
public double High { get; internal set; }
/// <summary>
/// Gets the Low value of the point
/// </summary>
public double Low { get; internal set; }
/// <summary>
/// Gets the Close value of the point
/// </summary>
public double Close { get; internal set; }
#endregion
#region Polar
/// <summary>
/// Gets the Radius of a point
/// </summary>
public double Radius { get; internal set; }
/// <summary>
/// Gets the angle of a point
/// </summary>
public double Angle { get; internal set; }
#endregion
#region Appearance
/// <summary>
/// Gets the Fill brush of this point, this property overrides series Fill property
/// </summary>
public object Fill { get; internal set; }
/// <summary>
/// Gets the Stroke brush of this point, this property overrides series Stroke property
/// </summary>
public object Stroke { get; internal set; }
#endregion
/// <summary>
/// Gets the coordinate where the value is placed at chart
/// </summary>
public CorePoint ChartLocation { get; internal set; }
/// <summary>
/// Gets the index of this point in the chart
/// </summary>
public int Key { get; internal set; }
/// <summary>
/// Gets the object where the chart pulled the point
/// </summary>
public object Instance { get; internal set; }
/// <summary >
/// Gets or sets the view of this chart point
/// </summary>
public IChartPointView View { get; internal set; }
/// <summary>
/// Gets the series where the point belongs to
/// </summary>
public ISeriesView SeriesView { get; internal set; }
/// <summary>
/// Gets the chart view.
/// </summary>
/// <value>
/// The chart view.
/// </value>
public IChartView ChartView { get { return SeriesView.Model.Chart.View; } }
internal double Gci { get; set; }
}
}