diff options
| author | Jacob Palecki <[email protected]> | 2020-08-12 19:51:38 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-08-12 19:51:38 -0700 |
| commit | b6254f32a6cfbd40bd1919950b344160f38bf1e4 (patch) | |
| tree | 82a2a514f90b9781062b2919e2b17c4cc6f852bc /grapher/Models/Charts/ChartXY.cs | |
| parent | Reorganized solution into directories (diff) | |
| download | rawaccel-b6254f32a6cfbd40bd1919950b344160f38bf1e4.tar.xz rawaccel-b6254f32a6cfbd40bd1919950b344160f38bf1e4.zip | |
Factor accel calculations into calculation classes
Diffstat (limited to 'grapher/Models/Charts/ChartXY.cs')
| -rw-r--r-- | grapher/Models/Charts/ChartXY.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/grapher/Models/Charts/ChartXY.cs b/grapher/Models/Charts/ChartXY.cs index 4bb1bd5..a57801e 100644 --- a/grapher/Models/Charts/ChartXY.cs +++ b/grapher/Models/Charts/ChartXY.cs @@ -1,4 +1,5 @@ using System; +using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; @@ -89,6 +90,11 @@ namespace grapher public bool Combined { get; private set; } + public void Bind(IDictionary data) + { + ChartX.Series[0].Points.DataBindXY(data.Keys, data.Values); + } + public void SetCombined() { if (!Combined) |