示例#1
0
 public ScatterChart()
 {
     PrimaryAxis = new Axis();
     SecondaryAxis = new Axis();
     Hoverable = true;
     ShapeHoverBehavior = ShapeHoverBehavior.Dot;
     AnimatesNewPoints = true;
     AreaOpacity = 0.2;
     LineType = LineChartLineType.Bezier;
     DataToolTip = new DefaultScatterTooltip();
 }
示例#2
0
        public ScatterChart()
        {
            AxisY = new Axis();
            AxisX = new Axis();
            Hoverable = true;
            ShapeHoverBehavior = ShapeHoverBehavior.Dot;
            LineType = LineChartLineType.Bezier;
            DataToolTip = new DefaultScatterTooltip();

            var defaultConfig = new SeriesConfiguration<Point>().X(pt => pt.X).Y(pt => pt.Y);
            SetCurrentValue(SeriesProperty, new SeriesCollection(defaultConfig));
        }