public GradientChart()
        {
            InitializeComponent();

            solutions     = new List <IRegressionSolution>();
            seriesCache   = new Dictionary <IRegressionSolution, Series>();
            ciSeriesCache = new Dictionary <IRegressionSolution, Series>();

            // Configure axis
            chart.CustomizeAllChartAreas();
            chart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true;
            chart.ChartAreas[0].AxisX.ScaleView.Zoomable       = true;
            chart.ChartAreas[0].CursorX.Interval = 0;

            chart.ChartAreas[0].CursorY.IsUserSelectionEnabled = true;
            chart.ChartAreas[0].AxisY.ScaleView.Zoomable       = true;
            chart.ChartAreas[0].CursorY.Interval = 0;

            configToolStripMenuItem        = new ToolStripMenuItem("Configuration");
            configToolStripMenuItem.Click += config_Click;
            chart.ContextMenuStrip.Items.Add(new ToolStripSeparator());
            chart.ContextMenuStrip.Items.Add(configToolStripMenuItem);
            configurationDialog = new GradientChartConfigurationDialog(this);

            Disposed += GradientChart_Disposed;
        }
示例#2
0
    public GradientChart() {
      InitializeComponent();

      solutions = new List<IRegressionSolution>();
      seriesCache = new Dictionary<IRegressionSolution, Series>();
      ciSeriesCache = new Dictionary<IRegressionSolution, Series>();

      // Configure axis
      chart.CustomizeAllChartAreas();
      chart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true;
      chart.ChartAreas[0].AxisX.ScaleView.Zoomable = true;
      chart.ChartAreas[0].CursorX.Interval = 0;

      chart.ChartAreas[0].CursorY.IsUserSelectionEnabled = true;
      chart.ChartAreas[0].AxisY.ScaleView.Zoomable = true;
      chart.ChartAreas[0].CursorY.Interval = 0;

      configToolStripMenuItem = new ToolStripMenuItem("Configuration");
      configToolStripMenuItem.Click += config_Click;
      chart.ContextMenuStrip.Items.Add(new ToolStripSeparator());
      chart.ContextMenuStrip.Items.Add(configToolStripMenuItem);
      configurationDialog = new GradientChartConfigurationDialog(this);

      Disposed += GradientChart_Disposed;
    }