@@ -81,16 +81,16 ChartView { | |||||
81 | // but the series have their own y-axes to make it possible to control the y-offset |
|
81 | // but the series have their own y-axes to make it possible to control the y-offset | |
82 | // of the "signal sources". |
|
82 | // of the "signal sources". | |
83 | if (type == "line") { |
|
83 | if (type == "line") { | |
84 |
scopeView.createSeries(ChartView.SeriesTypeLine, "signal 1", |
|
84 | scopeView.createSeries(ChartView.SeriesTypeLine, "signal 1", axisX, axisY1); | |
85 |
scopeView.createSeries(ChartView.SeriesTypeLine, "signal 2", |
|
85 | scopeView.createSeries(ChartView.SeriesTypeLine, "signal 2", axisX, axisY2); | |
86 | } else if (type == "spline") { |
|
86 | } else if (type == "spline") { | |
87 |
scopeView.createSeries(ChartView.SeriesTypeSpline, "signal 1", |
|
87 | scopeView.createSeries(ChartView.SeriesTypeSpline, "signal 1", axisX, axisY1); | |
88 |
scopeView.createSeries(ChartView.SeriesTypeSpline, "signal 2", |
|
88 | scopeView.createSeries(ChartView.SeriesTypeSpline, "signal 2", axisX, axisY2); | |
89 | } else { |
|
89 | } else { | |
90 |
var series1 = scopeView.createSeries(ChartView.SeriesTypeScatter, "signal 1", |
|
90 | var series1 = scopeView.createSeries(ChartView.SeriesTypeScatter, "signal 1", axisX, axisY1); | |
91 | series1.markerSize = 3; |
|
91 | series1.markerSize = 3; | |
92 | series1.borderColor = "transparent"; |
|
92 | series1.borderColor = "transparent"; | |
93 |
var series2 = scopeView.createSeries(ChartView.SeriesTypeScatter, "signal 2", |
|
93 | var series2 = scopeView.createSeries(ChartView.SeriesTypeScatter, "signal 2", axisX, axisY2); | |
94 | series2.markerSize = 3; |
|
94 | series2.markerSize = 3; | |
95 | series2.borderColor = "transparent"; |
|
95 | series2.borderColor = "transparent"; | |
96 | } |
|
96 | } |
General Comments 0
You need to be logged in to leave comments.
Login now