Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10981


Ignore:
Timestamp:
06/11/14 13:36:16 (10 years ago)
Author:
psteiner
Message:

Zoom in DataCompletenessChart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/DataCompletenessView.cs

    r10979 r10981  
    3939      if (Content != null)
    4040      {
    41         //chart.PrePaint += chart_PrePaint;
    42         //chart.CustomizeLegend += chart_CustomizeLegend;
    4341        InitData();
    4442      }
     
    4644
    4745   
    48     /*
    49     void chart_CustomizeLegend(object sender, CustomizeLegendEventArgs e)
    50     {
    51       foreach (LegendItem li in e.LegendItems)
    52       {
    53         int label;
    54         int.TryParse(li.Cells[0].ToString(), out label);
    55 
    56         li.Cells[0].Text = "Banane";
    57         //li.Cells[0].Text = (label - Content.DataGridLogic.Rows).ToString();
    58       }
    59     }*/
    60 
    6146    private void InitData()
    6247    {
     
    7964    {
    8065      chart.Titles.Add("DataCompletenessChart");
     66      chart.EnableDoubleClickResetsZoom = true;
    8167      chart.ChartAreas[0].AxisX.MajorGrid.LineWidth = 0;
    8268      chart.ChartAreas[0].AxisY.MajorGrid.LineWidth = 0;
    8369      chart.ChartAreas[0].AxisX.IsMarginVisible = false;
    8470      chart.ChartAreas[0].AxisY.IsMarginVisible = false;
     71      chart.ChartAreas[0].CursorX.IsUserEnabled = true;
     72      chart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true;
     73      chart.ChartAreas[0].CursorY.IsUserEnabled = true;
     74      chart.ChartAreas[0].CursorY.IsUserSelectionEnabled = true;
    8575      //custom x axis label
    8676      double from = 0.5;
Note: See TracChangeset for help on using the changeset viewer.