| |
|
Line 58
|
Parallel
|
Line 58
|
Parallel
|
| 58 |
refreshInterval= uint(Application.application.parameters.refreshInterval); |
58 |
refreshInterval= uint(Application.application.parameters.refreshInterval); |
| 59 |
if (refreshInterval < 10000) refreshInterval=10000; |
59 |
if (refreshInterval < 10000) refreshInterval=10000; |
| 60 |
this.isChartRefreshEnabled=Application.application.parameters.isChartRefreshEnabled.toString(); |
60 |
this.isChartRefreshEnabled=Application.application.parameters.isChartRefreshEnabled.toString(); |
| 61 |
this.isRealTimeChart = Application.application.parameters.isRealTimeChart.toString(); |
61 |
this.isRealTimeChart = Application.application.parameters.isRealTimeChart as String; |
| 62 |
this.legendsContainer = new Canvas(); |
62 |
this.legendsContainer = new Canvas(); |
| 63 |
legendsContainer.x = 0; |
63 |
legendsContainer.x = 0; |
| 64 |
legendsContainer.y = 0; |
64 |
legendsContainer.y = 0; |
| |
| |
|
Line 134
|
Parallel
|
Line 134
|
Parallel
|
| 134 |
if(this.noDataLabel == null){ |
134 |
if(this.noDataLabel == null){ |
| 135 |
this.noDataLabel = ChartsUtil.addNoDataToCanvas(chartContainer); |
135 |
this.noDataLabel = ChartsUtil.addNoDataToCanvas(chartContainer); |
| 136 |
} |
136 |
} |
| 137 |
if (isRealTimeChart === "true") startRefreshTimer(); |
137 |
if (this.isRealTimeChart === "true") startRefreshTimer(); |
| 138 |
} |
138 |
} |
| 139 |
else |
139 |
else |
| 140 |
{ |
140 |
{ |
| |
| |
|
Line 187
|
Parallel
|
Line 187
|
Parallel
|
| 187 |
{ |
187 |
{ |
| 188 |
if(refreshTimer.running) |
188 |
if(refreshTimer.running) |
| 189 |
{ |
189 |
{ |
|
|
190 |
isLoadedFirst = false; |
| 190 |
isDataPopulated=false; |
191 |
isDataPopulated=false; |
| 191 |
loadChartData(); |
192 |
loadChartData(); |
| 192 |
} |
193 |
} |
| |
| |
|
Line 239
|
Parallel
|
Line 240
|
Parallel
|
| 239 |
{ |
240 |
{ |
| 240 |
try |
241 |
try |
| 241 |
{ |
242 |
{ |
|
|
243 |
chartData = new ArrayCollection(dataObject.dbValues.chartData as Array); |
|
|
244 |
delete dataObject.dbValues.chartData; |
|
|
245 |
linechart.dataProvider = chartData; |
|
|
246 |
|
| 242 |
if(isLoadedFirst) |
247 |
if(isLoadedFirst) |
| 243 |
{ |
248 |
{ |
| 244 |
var legendsHeight : uint = 0; |
249 |
var legendsHeight : uint = 0; |
| 245 |
var previousXPosition : uint = 0; |
250 |
var previousXPosition : uint = 0; |
| 246 |
var previousYPosition : uint = 0; |
251 |
var previousYPosition : uint = 0; |
| 247 |
chartData = new ArrayCollection(dataObject.dbValues.chartData as Array); |
|
|
| 248 |
delete dataObject.dbValues.chartData; |
|
|
| 249 |
linechart.series = []; // Reset the series... |
252 |
linechart.series = []; // Reset the series... |
| 250 |
var series:LineSeries=null; |
253 |
var series:LineSeries=null; |
| 251 |
var displayStr:String=""; |
254 |
var displayStr:String=""; |
| |
| |
|
Line 269
|
Parallel
|
Line 272
|
Parallel
|
| 269 |
series.setStyle("radius", 3); |
272 |
series.setStyle("radius", 3); |
| 270 |
series.setStyle("adjustedRadius", 1); |
273 |
series.setStyle("adjustedRadius", 1); |
| 271 |
series.setStyle("itemRenderer", new ClassFactory(DiamondItemRenderer)); |
274 |
series.setStyle("itemRenderer", new ClassFactory(DiamondItemRenderer)); |
| 272 |
if (isRealTimeChart === "false") |
275 |
if (this.isRealTimeChart === "false") |
| 273 |
series.setStyle("showDataEffect", interpolateData); |
276 |
series.setStyle("showDataEffect", interpolateData); |
| 274 |
var legendItem : LegendItem = new LegendItem({"name": series.id, |
277 |
var legendItem : LegendItem = new LegendItem({"name": series.id, |
| 275 |
legendBox:{"fillColor" : fillColorValue, "fillAlpha": 0.5}, |
278 |
legendBox:{"fillColor" : fillColorValue, "fillAlpha": 0.5}, |
| |