Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14740


Ignore:
Timestamp:
03/09/17 14:38:04 (7 years ago)
Author:
pfleck
Message:

#2715 Added percentage in the tool tip of histogram-bars.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableControl.cs

    r14582 r14740  
    618618      // add data points
    619619      int j = 0;
     620      int overallCount = row.Values.Count(x => !IsInvalidValue(x));
    620621      foreach (var d in range) {
    621622        double sum = 0.0;
     
    633634        series.Points.Add(new DataPoint((double)(d - intervalCenter), sum) {
    634635          ToolTip =
    635             xAxisTitle + ": [" + (d - intervalWidth) + "-" + d + ")" + Environment.NewLine +
    636             yAxisTitle + ": " + sum
     636            string.Format("{0}: [{1} - {2})", xAxisTitle, (d - intervalWidth), d) + Environment.NewLine +
     637            string.Format("{0}: {1} ({2:F2}%)", yAxisTitle, sum, sum / overallCount * 100)
    637638        });
    638639      }
Note: See TracChangeset for help on using the changeset viewer.