Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/11/11 15:03:46 (13 years ago)
Author:
gkronber
Message:

Merged changes from trunk to data analysis exploration branch and added fractional distance metric evaluator. #1142

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/LineChartView.cs

    r4068 r5275  
    4343      InitializeComponent();
    4444      //configure axis
     45      this.chart.CustomizeAllChartAreas();
    4546      this.chart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true;
    4647      this.chart.ChartAreas[0].AxisX.ScaleView.Zoomable = true;
     
    120121      }
    121122    }
     123
     124    private void Chart_MouseDoubleClick(object sender, MouseEventArgs e) {
     125      HitTestResult result = chart.HitTest(e.X, e.Y);
     126      if (result.ChartArea != null && (result.ChartElementType == ChartElementType.PlottingArea ||
     127                                       result.ChartElementType == ChartElementType.Gridlines) ||
     128                                       result.ChartElementType == ChartElementType.StripLines) {
     129        foreach (var axis in result.ChartArea.Axes)
     130          axis.ScaleView.ZoomReset(int.MaxValue);
     131      }
     132    }
    122133    #endregion
    123134
Note: See TracChangeset for help on using the changeset viewer.