Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/13 15:29:37 (12 years ago)
Author:
pfleck
Message:

#2063:
Changed year in headers from 2012 to 2013.
Minor reformattings in chart helpers.
Refactored and simplified some statistics generator methods.

File:
1 edited

Legend:

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

    r9644 r9646  
    11@* HeuristicLab
    2  * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     2 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    33 *
    44 * This file is part of HeuristicLab.
     
    3535}
    3636
    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) {
    4038    <script>
    4139        var @(destinationTag)Plot = $.jqplot("@destinationTag", "@url", {
     
    4644            },
    4745            seriesDefaults: {
    48                 markerOptions: { show: false },
    49                 //fill: true
     46                markerOptions: { show: false }
    5047            },
    5148            dataRenderer: ajaxDataRenderer,
     
    9794
    9895@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>
    105104}
Note: See TracChangeset for help on using the changeset viewer.