Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/04/14 13:01:40 (10 years ago)
Author:
mroscoe
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/App_Code/ChartHelper.cshtml

    r11252 r11259  
    448448}
    449449
    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)
    451451{
    452452  <text>
     
    459459  //Get the most recent value(s) from the given URL
    460460  $.ajax({
    461     async: false, url: '@(url)', datatype: "json", success: function (result) {
     461    async: false, url: "@(url)?state=" + @(slaveState), datatype: "json", success: function (result) {
    462462      for(i = 0; i < result.length; i++) {
    463463        @(dataName)CurrentValue[i] = result[i];
     
    531531}
    532532
    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)
    534534{
    535535  <text>
     
    543543  //Get the up-to-date data, each result assigned to it's own array
    544544  $.ajax({
    545     async: false, url: '@(url)', datatype: "json", success: function (result) {
     545    async: false, url: "@(url)?state=" + @(slaveState), datatype: "json", success: function (result) {
    546546      for(i = 0; i < result.length; i++) {
    547547        window[ "@(dataName)Data" + i].push([(new Date()).getTime(), result[i]]);
Note: See TracChangeset for help on using the changeset viewer.