Changeset 11259 for branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/App_Code/ChartHelper.cshtml
- Timestamp:
- 08/04/14 13:01:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/App_Code/ChartHelper.cshtml
r11252 r11259 448 448 } 449 449 450 @helper CreateStreamChart(string dataName, string destinationTag, string url, string title, string format = null, double? maxY = null)450 @helper CreateStreamChart(string dataName, string destinationTag, string url, string title, string slaveState, string format = null, double? maxY = null) 451 451 { 452 452 <text> … … 459 459 //Get the most recent value(s) from the given URL 460 460 $.ajax({ 461 async: false, url: '@(url)', datatype: "json", success: function (result) {461 async: false, url: "@(url)?state=" + @(slaveState), datatype: "json", success: function (result) { 462 462 for(i = 0; i < result.length; i++) { 463 463 @(dataName)CurrentValue[i] = result[i]; … … 531 531 } 532 532 533 @helper UpdateStreamChart(string dataName, string destinationTag, string url, string fixedY = null)533 @helper UpdateStreamChart(string dataName, string destinationTag, string url, string slaveState, string fixedY = null) 534 534 { 535 535 <text> … … 543 543 //Get the up-to-date data, each result assigned to it's own array 544 544 $.ajax({ 545 async: false, url: '@(url)', datatype: "json", success: function (result) {545 async: false, url: "@(url)?state=" + @(slaveState), datatype: "json", success: function (result) { 546 546 for(i = 0; i < result.length; i++) { 547 547 window[ "@(dataName)Data" + i].push([(new Date()).getTime(), result[i]]);
Note: See TracChangeset
for help on using the changeset viewer.