Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4058


Ignore:
Timestamp:
07/21/10 13:02:25 (14 years ago)
Author:
mkommend
Message:

corrected custom labels in RunCollectionBubbleChartView (ticket #1047)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs

    r4049 r4058  
    532532        for (double i = axis.Minimum; i <= axis.Maximum; i += axis.LabelStyle.Interval) {
    533533          TimeSpan time = TimeSpan.FromSeconds(i);
    534           string x = string.Format("{0:00}:{1:00}:{2:00.00}", (int)time.TotalHours, time.Minutes, time.TotalSeconds);
    535           axis.CustomLabels.Add(i - 0.5, i + 0.5, x);
     534          string x = string.Format("{0:00}:{1:00}:{2:00}", (int)time.Hours, time.Minutes, time.Seconds);
     535          axis.CustomLabels.Add(i - axis.LabelStyle.Interval / 2, i + axis.LabelStyle.Interval / 2, x);
    536536        }
    537537      }
Note: See TracChangeset for help on using the changeset viewer.