Changeset 9646 for branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/App_Code
- Timestamp:
- 06/19/13 15:29:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/App_Code/ChartHelper.cshtml
r9644 r9646 1 1 @* HeuristicLab 2 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)2 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 3 3 * 4 4 * This file is part of HeuristicLab. … … 35 35 } 36 36 37 @helper LineChartTime(string destinationTag, string url, string title = "", 38 double? minY = null, double? maxY = null, string axisYFormat = null) { 39 37 @helper LineChartTime(string destinationTag, string url, string title = "", double? minY = null, double? maxY = null, string axisYFormat = null) { 40 38 <script> 41 39 var @(destinationTag)Plot = $.jqplot("@destinationTag", "@url", { … … 46 44 }, 47 45 seriesDefaults: { 48 markerOptions: { show: false }, 49 //fill: true 46 markerOptions: { show: false } 50 47 }, 51 48 dataRenderer: ajaxDataRenderer, … … 97 94 98 95 @helper RefreshChart(string destinationTag, string url, string startDateVar, string endDateVar) { 99 @:$.ajax({url: "@(new HtmlString(url))?start=" + @startDateVar + "&end=" + @endDateVar, datatype: "json", success: function(result) { 100 @: for (var i = 0; i < result.length; i++) { 101 @: @(destinationTag)Plot.series[i].data = result[i]; 102 @: } 103 @: @(destinationTag)Plot.replot({ resetAxes: true }) 104 @:}}); 96 <text> 97 $.ajax({url: "@(new HtmlString(url))?start=" + @startDateVar + "&end=" + @endDateVar, datatype: "json", success: function(result) { 98 for (var i = 0; i < result.length; i++) { 99 @(destinationTag)Plot.series[i].data = result[i]; 100 } 101 @(destinationTag)Plot.replot({ resetAxes: true }) 102 }}); 103 </text> 105 104 }
Note: See TracChangeset
for help on using the changeset viewer.