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);
        }
Пример #2
0
        SparklineEdit CreateSparkline(Color color)
        {
            SparklineEdit sparkline = new SparklineEdit();

            sparkline.Properties.View.Color = color;
            sparkline.BorderStyle           = BorderStyles.NoBorder;
            return(sparkline);
        }
Пример #3
0
 public void UpdateData(IEnumerable <SalesGroup> data)
 {
     this.data = data.ToArray();
     GenerateRuler();
     currentSparkline.Dispose();
     currentSparkline      = CreateSparkline(chartColor);
     currentSparkline.Data = CreateSparklineData(data);
     RaiseRangeChanged();
 }
Пример #4
0
 public RangeControlSalesClient(Color chartColor) {
     this.chartColor = chartColor;
     currentSparkline = CreateSparkline(chartColor);
 }
Пример #5
0
 SparklineEdit CreateSparkline(Color color) {
     SparklineEdit sparkline = new SparklineEdit();
     sparkline.Properties.View.Color = color;
     sparkline.BorderStyle = BorderStyles.NoBorder;
     return sparkline;
 }
Пример #6
0
 public void UpdateData(IEnumerable<SalesGroup> data) {
     this.data = data.ToArray();
     GenerateRuler();
     currentSparkline.Dispose();
     currentSparkline = CreateSparkline(chartColor);
     currentSparkline.Data = CreateSparklineData(data);
     RaiseRangeChanged();
 }
Пример #7
0
 public RangeControlSalesClient(Color chartColor)
 {
     this.chartColor  = chartColor;
     currentSparkline = CreateSparkline(chartColor);
 }