public void PieSeries() { var s1 = new OxyPlot.Series.PieSeries(); var s2 = new PieSeries(); OxyAssert.PropertiesAreEqual(s1, s2); }
private OxyPlot.PlotModel GerarGraficoPizza() { //CONFIGURACAO var valores = new OxyPlot.Series.PieSeries(); valores.Stroke = OxyPlot.OxyColors.White; valores.StrokeThickness = 1.0; valores.Diameter = 1.0; valores.InnerDiameter = 0.0; valores.StartAngle = 90.0; valores.AngleSpan = 360.0; valores.AngleIncrement = 1.0; valores.OutsideLabelFormat = "{2:0} %"; valores.InsideLabelFormat = "{1}"; valores.TickDistance = 0.5; valores.TickRadialLength = 6; valores.TickHorizontalLength = 1; valores.TickLabelDistance = 1; valores.InsideLabelPosition = 0.5; valores.FontSize = 12; valores.Slices.Add( new OxyPlot.Series.PieSlice("Cotação Real", Moeda.CotacaoRealMoeda)); valores.Slices.Add( new OxyPlot.Series.PieSlice("Cotação Dolar", Moeda.CotacaoDolarMoeda)); // ADICIONANDO OS VALORES NO GRÁFICO var plotModel = new OxyPlot.PlotModel(); plotModel.IsLegendVisible = true; plotModel.Series.Add(valores); return(plotModel); }
/// <summary> /// Initializes a new instance of the <see cref="PieSeries"/> class. /// </summary> public PieSeries() { InternalSeries = new OxyPlot.Series.PieSeries(); }