private void InitChart(SCIChartSurface surface, BasePaneModel model, bool isMainPain) { _axisAreaSizeSync.AttachSurface(surface); var xAxis = new SCICategoryDateTimeAxis { IsVisible = isMainPain, GrowBy = new SCIDoubleRange(0, 0.05) }; _axisRangeSync.AttachAxis(xAxis); using (surface.SuspendUpdates()) { surface.XAxes.Add(xAxis); surface.YAxes.Add(model.YAxis); surface.RenderableSeries = model.RenderableSeries; surface.Annotations = model.Annotations; surface.ChartModifiers = new SCIChartModifierCollection { new SCIXAxisDragModifier { DragMode = SCIAxisDragMode.Pan, ClipModeX = SCIClipMode.StretchAtExtents }, new SCIPinchZoomModifier { Direction = SCIDirection2D.XDirection }, new SCIZoomPanModifier(), new SCIZoomExtentsModifier(), new SCILegendModifier { ShowCheckBoxes = false } }; } }