Exemplo n.º 1
0
        private void AddChart()
        {
            chartCanvas.Children.Clear();
            cs                 = new ChartStyle2D();
            cs.ChartCanvas     = this.chartCanvas;
            cs.GridlinePattern = ChartStyle.GridlinePatternEnum.Solid;
            cs.IsColorBar      = true;
            cs.Title           = "No Title";
            ds                 = new DataSeriesSurface();
            Utility.Peak3D(cs, ds);

            d3c = new Draw3DChart();
            d3c.Colormap.ColormapBrushType = ColormapBrush.ColormapBrushEnum.Jet;
            d3c.ChartType        = Draw3DChart.ChartTypeEnum.MeshContour3D;
            d3c.IsLineColorMatch = true;
            d3c.NumberContours   = 15;
            d3c.AddChart(cs, ds);
        }
 private void AddChart()
 {
     chartCanvas.Children.Clear();
     cs                 = new ChartStyle2D();
     cs.ChartCanvas     = this.chartCanvas;
     cs.GridlinePattern = ChartStyle.GridlinePatternEnum.Solid;
     cs.Elevation       = 30;
     cs.Azimuth         = -37;
     cs.Title           = "No Title";
     cs.IsColorBar      = true;
     ds                 = new DataSeriesSurface();
     ds.LineColor       = Brushes.Transparent;
     Utility.Peak3D(cs, ds);
     d3c           = new Draw3DChart();
     d3c.ChartType = Draw3DChart.ChartTypeEnum.XYColor;
     cs.AddChartStyle2D(d3c);
     d3c.IsInterp     = true;
     d3c.NumberInterp = 5;
     d3c.AddChart(cs, ds);
 }