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);
        }
Esempio n. 2
0
        SparklineEdit CreateSparkline(Color color)
        {
            SparklineEdit sparkline = new SparklineEdit();

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