Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6096


Ignore:
Timestamp:
05/02/11 14:59:18 (14 years ago)
Author:
mkommend
Message:

#1413: Fixed remaining bugs in the bubble chart.

File:
1 edited

Legend:

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

    r6094 r6096  
    227227      series.Points.Clear();
    228228      runToDataPointMapping.Clear();
     229
     230      chart.ChartAreas[0].AxisX.IsMarginVisible = xAxisValue != AxisDimension.Index.ToString();
     231      chart.ChartAreas[0].AxisY.IsMarginVisible = yAxisValue != AxisDimension.Index.ToString();
     232
    229233      if (Content != null) {
    230234        foreach (IRun run in this.Content)
     
    445449        this.chart.ChartAreas[0].CursorY.SelectionStart = this.chart.ChartAreas[0].CursorY.SelectionEnd;
    446450      }
     451      UpdateAxisLabels();
    447452    }
    448453
     
    560565      yAxisValue = (string)yAxisComboBox.SelectedItem;
    561566      sizeAxisValue = (string)sizeComboBox.SelectedItem;
    562 
    563       chart.ChartAreas[0].AxisX.IsMarginVisible = xAxisValue != AxisDimension.Index.ToString() ;
    564       chart.ChartAreas[0].AxisY.IsMarginVisible = yAxisValue != AxisDimension.Index.ToString();
    565567
    566568      UpdateDataPoints();
     
    602604        for (double i = axis.Minimum; i <= axis.Maximum; i += axis.LabelStyle.Interval) {
    603605          TimeSpan time = TimeSpan.FromSeconds(i);
    604           string x = string.Format("{0:00}:{1:00}:{2:00}", (int)time.Hours, time.Minutes, time.Seconds);
     606          string x = string.Format("{0:00}:{1:00}:{2:00}", time.Hours, time.Minutes, time.Seconds);
    605607          axis.CustomLabels.Add(i - axis.LabelStyle.Interval / 2, i + axis.LabelStyle.Interval / 2, x);
    606608        }
Note: See TracChangeset for help on using the changeset viewer.