Ejemplo n.º 1
0
        private static void OnScatterHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FastScatterBitmapSeries series = d as FastScatterBitmapSeries;

            if (series != null)
            {
                series.UpdateArea();
            }
        }
        public FastScatterBitmapSegment(IList <double> xVals, IList <double> yVals, FastScatterBitmapSeries series)
        {
            xValues         = new List <double>();
            yValues         = new List <double>();
            base.Series     = series;
            fastSeries      = series;
            base.Item       = series.ActualData;
            this.xChartVals = xVals;
            this.yChartVals = yVals;

            SetRange();
        }
Ejemplo n.º 3
0
        private static void OnShapeTypePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FastScatterBitmapSeries series = d as FastScatterBitmapSeries;

            if (series == null)
            {
                return;
            }

            if (series.ShapeType == ChartSymbol.Custom || series.ShapeType == ChartSymbol.HorizontalLine || series.ShapeType == ChartSymbol.VerticalLine)
            {
                series.ShapeType = ChartSymbol.Ellipse;
            }

            if (series.LegendIcon == ChartLegendIcon.SeriesType)
            {
                series.UpdateLegendIconTemplate(true);
            }

            series.UpdateArea();
        }