-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathChartSeriesData.cs
More file actions
85 lines (60 loc) · 1.87 KB
/
Copy pathChartSeriesData.cs
File metadata and controls
85 lines (60 loc) · 1.87 KB
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
using System;
using System.Collections.Generic;
using System.Linq;
using Syncfusion.Windows.Chart;
namespace ArrayVisualizerExt
{
public class ChartSeriesData : IChartData
{
private readonly double[] _arr;
#region IChartData Members
public ChartSeriesData(IEnumerable<double> data)
{
_arr = data.ToArray();
}
public ChartValueType ChartXValueType
{
get => ChartValueType.Double;
set { }
}
public int Count => _arr.Length;
public ChartValueType XValueType => ChartValueType.Double;
public IChartDataPoint this[int index] => new ChartDataPoint {X = index, Y = _arr[index]};
#endregion
#region INotifyCollectionChanged Members
public event System.Collections.Specialized.NotifyCollectionChangedEventHandler CollectionChanged;
#endregion
#region IDisposable Members
public void Dispose()
{
}
#endregion
}
internal class ChartDataPoint : IChartDataPoint
{
#region IChartDataPoint Members
public bool EmptyPoint { get; set; }
public bool IsEmpty => throw new NotImplementedException();
public object Item { get; set; }
public string Label { get; set; }
public ChartSegment ParentSegment { get; set; }
public object StringItem { get; set; }
public object Tag { get; set; }
public double[] Values { get; set; }
public bool Visible { get; set; }
public double X { get; set; }
public double Y { get; set; }
#endregion
#region ICloneable Members
public object Clone()
{
return new ChartDataPoint();
}
#endregion
#region IDisposable Members
public void Dispose()
{
}
#endregion
}
}