private void Init_chart()
 {
     chart1.Series.Clear();
     chart1.ChartAreas[0].AxisX.Minimum = 0;
     ChartControl.ChartSetup(chart1, "acc_x", 1, Color.DarkRed, SeriesChartType.Line, ChartValueType.Int32);
     ChartControl.ChartSetup(chart1, "acc_y", 1, Color.DarkGreen, SeriesChartType.Line, ChartValueType.Int32);
     ChartControl.ChartSetup(chart1, "acc_z", 1, Color.DarkBlue, SeriesChartType.Line, ChartValueType.Int32);
     ChartControl.ChartSetup(chart1, "v_len", 1, Color.DarkOrange, SeriesChartType.Line, ChartValueType.Int32);
     //ChartControl.ChartSetup(chart1, "GAng", 1, Color.DarkGoldenrod, SeriesChartType.Line, ChartValueType.Int32);
     //ChartControl.ChartSetup(chart1, "AccLen", 1, Color.Black, SeriesChartType.Line, ChartValueType.Int32);
     //ChartControl.ChartSetup(chart1, "Velocity", 1, Color.Purple, SeriesChartType.Line, ChartValueType.Int32);
 }
Exemplo n.º 2
0
 private void _init_chart()
 {
     chart_signal.MouseWheel += chart_signal_MouseWheel;
     chart_signal.Series.Clear();
     chart_signal.ChartAreas[0].AxisX.Minimum             = 0;
     chart_signal.ChartAreas[0].AxisY.Minimum             = -113;
     chart_signal.ChartAreas[0].AxisY.Maximum             = -30;
     chart_signal.ChartAreas[0].AxisX.LabelStyle.Enabled  = false;;
     chart_signal.ChartAreas[0].AxisX.MajorGrid.LineWidth = 0;
     chart_signal.ChartAreas[0].AxisY.MajorGrid.LineWidth = 1;
     //chart_signal.ChartAreas[0].Area3DStyle.Enable3D = true;
     //chart_signal.ChartAreas[0].Area3DStyle.Inclination = 10;
     //chart_signal.ChartAreas[0].Area3DStyle.Rotation = 10;
     ChartControl.ChartSetup(chart_signal, CHART_SERIES, 1, Color.DarkRed, SeriesChartType.Line, ChartValueType.Int32);
     chart_signal.Series[CHART_SERIES].IsVisibleInLegend = false;
     _chart_set_dock_state(false);
 }