private SparklineEdit CreateSparkline() { // Create a Sparkline editor and set its dock style. SparklineEdit sparkline = new SparklineEdit(); sparkline.Dock = DockStyle.Fill; sparkline.EditValue = CreateData(); // Create an Area view and assign it to the sparkline. AreaSparklineView view = new AreaSparklineView(); sparkline.Properties.View = view; // Customize area appearance. view.Color = Color.Aqua; view.AreaOpacity = 50; // Show markerks. view.HighlightStartPoint = true; view.HighlightEndPoint = true; view.HighlightMaxPoint = true; view.HighlightMinPoint = true; view.HighlightNegativePoints = true; view.SetSizeForAllMarkers(10); return(sparkline); }
SparklineEdit CreateSparkline(Color color) { SparklineEdit sparkline = new SparklineEdit(); sparkline.Properties.View.Color = color; sparkline.BorderStyle = BorderStyles.NoBorder; return(sparkline); }
public void UpdateData(IEnumerable <SalesGroup> data) { this.data = data.ToArray(); GenerateRuler(); currentSparkline.Dispose(); currentSparkline = CreateSparkline(chartColor); currentSparkline.Data = CreateSparklineData(data); RaiseRangeChanged(); }
public RangeControlSalesClient(Color chartColor) { this.chartColor = chartColor; currentSparkline = CreateSparkline(chartColor); }
SparklineEdit CreateSparkline(Color color) { SparklineEdit sparkline = new SparklineEdit(); sparkline.Properties.View.Color = color; sparkline.BorderStyle = BorderStyles.NoBorder; return sparkline; }
public void UpdateData(IEnumerable<SalesGroup> data) { this.data = data.ToArray(); GenerateRuler(); currentSparkline.Dispose(); currentSparkline = CreateSparkline(chartColor); currentSparkline.Data = CreateSparklineData(data); RaiseRangeChanged(); }