private void DyNevronChart_Load(object sender, EventArgs e)
{
m_chart = nChartControl1.Charts[0];
DataLimit = 10000;
DataDisplayRangeX = 100;
MaxValueY = 0.0;
MinValueY = 0.0;
m_seriesTracking = true;
m_chart.Margins = new NMarginsL(10, 20, 20, 10);
m_chart.DockMode = PanelDockMode.Fill;
m_chart.Axis(StandardAxis.Depth).Visible = false;
m_chart.BoundsMode = BoundsMode.Stretch;
m_chartTitleLabel = new NLabel();
m_chartTitleLabel.Margins = new NMarginsL(0, 3, 0, 3);
m_chartTitleLabel.DockMode = PanelDockMode.Top;
m_chartTitleLabel.Visible = false;
nChartControl1.Panels.Add(m_chartTitleLabel);
m_legend = new NLegend();
m_legend.SetPredefinedLegendStyle(PredefinedLegendStyle.TopRight);
m_legend.Margins = new NMarginsL(10, 10, 10, 10);
m_legend.Visible = true;
nChartControl1.Panels.Add(m_legend);
m_chart.DisplayOnLegend = m_legend;
NCartesianChart cartesianChart = m_chart as NCartesianChart;
cartesianChart.RangeSelections.Add(new NRangeSelection());
nChartControl1.Controller.Tools.Add(new NAxisScrollTool());
NDataPanTool dataPanTool = new NDataPanTool();
dataPanTool.Drag += DataPanTool_OnPaning;
dataPanTool.EndDrag += DataPanTool_EndPaning;
nChartControl1.Controller.Tools.Add(dataPanTool);
NDataZoomTool dataZoomTool = new NDataZoomTool();
dataZoomTool.WheelZoomAtMouse = true;
dataZoomTool.BeginDragMouseCommand = new NMouseCommand(MouseAction.Wheel, MouseButton.None, 0);
nChartControl1.Controller.Tools.Add(dataZoomTool);
nChartControl1.Controller.Selection.Add(cartesianChart);
NLinearScaleConfigurator xLinearScale = new NLinearScaleConfigurator();
xLinearScale.RoundToTickMax = false;
xLinearScale.RoundToTickMin = false;
xLinearScale.MajorGridStyle.SetShowAtWall(ChartWallType.Back, true);
xLinearScale.MajorGridStyle.LineStyle.Pattern = LinePattern.Dot;
xLinearScale.InflateViewRangeBegin = true;
xLinearScale.InflateViewRangeEnd = true;
NScaleStripStyle xInterlacedStrip = new NScaleStripStyle();
xLinearScale.StripStyles.Add(xInterlacedStrip);
m_chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = xLinearScale;
m_chart.Axis(StandardAxis.PrimaryX).ScrollBar.Visible = true;
m_chart.Axis(StandardAxis.PrimaryX).ScrollBar.ResetButton.Visible = true;
m_chart.Axis(StandardAxis.PrimaryX).ScrollBar.Reset += nChartControl1_ScrollReset;
NLinearScaleConfigurator yLinearScale = new NLinearScaleConfigurator();
yLinearScale.RoundToTickMax = false;
yLinearScale.RoundToTickMin = false;
yLinearScale.MajorGridStyle.SetShowAtWall(ChartWallType.Back, true);
yLinearScale.MajorGridStyle.LineStyle.Pattern = LinePattern.Dot;
NScaleStripStyle yInterlacedStrip = new NScaleStripStyle();
yLinearScale.StripStyles.Add(yInterlacedStrip);
m_chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator = yLinearScale;
m_chart.Wall(ChartWallType.Back).FillStyle = new NColorFillStyle(Color.BlueViolet); //NotWorking!!!!!!!!
}