public MultiplePiesChartFeatures(ChartView BaseChart) { pie1 = new Pie(); pie2 = new Pie(); pie3 = new Pie(); pie4 = new Pie(); var = new Variables.Variables(); this.BaseChart = BaseChart; Pie[] multiPie = new Pie[4] { pie1, pie2, pie3, pie4 }; BaseChart.Chart.Header.Text = "Objects in different house"; BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Panel.MarginLeft = 3; // Añadir todos los "pie" al Chart for (int i = 0; i < 4; i++) { CrearPie(multiPie[i], i); } // Themes Marks Themes.AplicarMarksTheme1(BaseChart); for (int i = 0; i < BaseChart.Chart.Series.Count; i++) { BaseChart.Chart.Series[i].Marks.Style = MarksStyles.Label; BaseChart.Chart.Series[i].Marks.Font.Size = 12; } pie2.RotationAngle = 25; pie4.RotationAngle = 25; }
public RadarChart(ChartView BaseChart) { this.BaseChart = BaseChart; var = new Variables.Variables(); radar1 = new Radar(); radar2 = new Radar(); radar3 = new Radar(); BaseChart.Chart.Title.Text = "Radar"; BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Left.Grid.Visible = true; BaseChart.Chart.Axes.Bottom.Grid.Visible = true; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Bottom.Increment = 200; BaseChart.Chart.Axes.Left.Increment = 200; InitializeRadarSerie(radar1, 0); InitializeRadarSerie(radar2, 1); InitializeRadarSerie(radar3, 2); // Themes Marks Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 18; BaseChart.Chart.Panel.MarginLeft = 5; }
public PyramidChart(ChartView BaseChart) { pyramid1 = new Pyramid(); var = new Variables.Variables(); this.BaseChart = BaseChart; BaseChart.Chart.Header.Text = "Pyramid Series"; BaseChart.Chart.Series.Add(pyramid1); BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Walls.Left.Visible = false; BaseChart.Chart.Walls.Left.Width = 5; pyramid1.SeriesColor = var.GetPaletteBasic[0]; pyramid1.Chart.Zoom.Allow = false; pyramid1.Chart.Panning.Allow = ScrollModes.None; pyramid1.DefaultNullValue = 0; pyramid1.Pen.Width = 3; pyramid1.Pen.Visible = true; pyramid1.Pen.Color = Color.White; pyramid1.Pen.Style = DashStyle.Solid; pyramid1.Pen.Transparency = 50; pyramid1.SizePercent = 80; pyramid1.ColorEach = false; for (int i = 0; i < var.GetValorPie1.Length; i++) { pyramid1.Add(var.GetValorPyramidX[i], var.GetValorPyramidY[i], var.GetValorPyramidName[i], var.GetPaletteBasic[i]); } pyramid1.Title = "Feudal society"; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue - 50, BaseChart.Chart.Axes.Left.MaxYValue + 50); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinYValue + 0.5, BaseChart.Chart.Axes.Bottom.MaxXValue - 0.5); BaseChart.Chart.Axes.Bottom.Increment = 5; BaseChart.Chart.Axes.Left.Increment = 5; BaseChart.Chart.Axes.Left.Visible = false; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Ticks = new Axis.TicksPen { Width = 2, Visible = true, Color = Color.FromRgb(200, 200, 200), EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10, }; BaseChart.Chart.Axes.Bottom.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Legend.Visible = false; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 18; BaseChart.Chart.Panel.MarginLeft = 5; pyramid1.Marks.Style = MarksStyles.Label; pyramid1.Marks.Visible = false; pyramid1.Marks.DrawEvery = 1; pyramid1.Marks.AutoPosition = true; pyramid1.Marks.OnTop = true; }
public VolumeChart(ChartView BaseChart) { volume = new Volume(); var = new Variables.Variables(); this.BaseChart = BaseChart; volume.FillSampleValues(8); volume.Color = var.GetPaletteBasic[0]; volume.LinePen.Width = 3; volume.Marks.Visible = true; volume.Marks.Color = var.GetPaletteBasic[0]; volume.Marks.TailStyle = MarksTail.None; Themes.AplicarTheme(BaseChart); Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Axes.Left.MinorTicks.Transparency = 100; BaseChart.Chart.Axes.Left.Visible = false; BaseChart.Chart.Axes.Left.AxisPen.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Left.Labels.Visible = true; BaseChart.Chart.Title.Text = "Volume series"; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Increment = 10; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Bottom.AxisPen.Visible = true; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Series.Add(volume); base.IsRepainted = false; BaseChart.Chart.AfterDraw += Chart_AfterDraw; }
public HighStdFunctionsChart(ChartView BaseChart) { highFunction = new Steema.TeeChart.Functions.High(); bar1 = new Bar(); theHighLine = new Line(); var = new Variables.Variables(); for (int i = 0; i < var.GetValorStdHigh1.Length; i++) { bar1.Add(i, var.GetValorStdHigh1[i]); } BaseChart.Chart.Series.Add(bar1); BaseChart.Chart.Series.Add(theHighLine); theHighLine.Function = highFunction; theHighLine.DataSource = new object[] { bar1 }; bar1.SeriesColor = var.GetPaletteBasic[0]; theHighLine.SeriesColor = var.GetPaletteBasic[2]; bar1.Title = "Data"; bar1.MarksOnBar = true; bar1.MarksLocation = MarksLocation.Start; theHighLine.Title = "High"; theHighLine.LinePen.Width = 6; theHighLine.Pointer.Style = PointerStyles.Sphere; theHighLine.Pointer.InflateMargins = true; theHighLine.Pointer.HorizSize = 5; theHighLine.Pointer.VertSize = 5; theHighLine.Pointer.Visible = true; theHighLine.Marks.Visible = true; theHighLine.Marks.DrawEvery = 2; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue + 0.23, BaseChart.Chart.Axes.Left.MaxYValue + 2); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Increment = 5; BaseChart.Chart.Axes.Bottom.Labels.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Header.Visible = false; Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 14; BaseChart.Chart.Series[1].Marks.Font.Size = 14; bar1.Marks.Pen.Visible = false; bar1.Marks.TailStyle = MarksTail.None; BaseChart.Chart.Series[0].Marks.TextAlign = TextAlignment.Center; BaseChart.Chart.Series[0].Marks.AutoSize = true; BaseChart.Chart.Series[0].Marks.Color = Color.Transparent; BaseChart.Chart.Series[1].Marks.TailStyle = MarksTail.None; BaseChart.Chart.Panel.MarginLeft = 5; ImplementiOSMarks(BaseChart.Chart); }
public MedianStdFunctionsChart(ChartView BaseChart) { medianFunction = new Steema.TeeChart.Functions.MedianFunction(); line = new Line(); theMedianLine = new Line(); var = new Variables.Variables(); for (int i = 0; i < var.GetValorStdMedian1.Length; i++) { line.Add(i, var.GetValorStdMedian1[i]); } BaseChart.Chart.Series.Add(line); BaseChart.Chart.Series.Add(theMedianLine); theMedianLine.Function = medianFunction; theMedianLine.DataSource = new object[] { line }; line.SeriesColor = var.GetPaletteBasic[0]; theMedianLine.SeriesColor = var.GetPaletteBasic[2]; line.Title = "Data"; line.Marks.Visible = false; line.LinePen.Width = 4; theMedianLine.Title = "Median"; theMedianLine.LinePen.Width = 6; theMedianLine.Pointer.Visible = true; theMedianLine.Marks.Visible = true; theMedianLine.Marks.DrawEvery = 2; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue + 2); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Increment = 10; BaseChart.Chart.Axes.Bottom.Labels.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Header.Visible = false; Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 14; BaseChart.Chart.Series[1].Marks.Font.Size = 14; BaseChart.Chart.Series[0].Marks.TextAlign = TextAlignment.Center; BaseChart.Chart.Series[0].Marks.AutoSize = true; BaseChart.Chart.Series[0].Marks.Color = Xamarin.Forms.Color.Transparent; BaseChart.Chart.Series[1].Marks.TailStyle = MarksTail.None; BaseChart.Chart.Panel.MarginLeft = 5; ImplementiOSMarks(BaseChart.Chart); }
public AddStdFunctionsChart(ChartView BaseChart) { addFunction = new Steema.TeeChart.Functions.Add(); bar = new Bar(); theAddLine = new Line(); var = new Variables.Variables(); BaseChart.Chart.Series.Add(bar); BaseChart.Chart.Series.Add(theAddLine); bar.Title = "Data"; bar.SeriesColor = var.GetPaletteBasic[0]; theAddLine.Title = "Add"; theAddLine.LinePen.Width = 6; theAddLine.Color = var.GetPaletteBasic[2]; for (int i = 0; i < var.GetValorStdAdd1.Length; i++) { bar.Add(i, var.GetValorStdAdd1[i]); } theAddLine.Function = addFunction; theAddLine.DataSource = bar; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue + 100); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Increment = 500; BaseChart.Chart.Axes.Bottom.Labels.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Header.Visible = false; Themes.AplicarMarksTheme1(BaseChart); theAddLine.Marks.Visible = true; theAddLine.Marks.Width += 40; theAddLine.Marks.DrawEvery = 2; ImplementiOSMarks(BaseChart.Chart); }
public SkewnessProFunctionChart(ChartView BaseChart) { area = new Area(); line = new Line(); skeweness = new SkewnessFunction(); var = new Variables.Variables(); BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Title.Text = "Skewness"; BaseChart.Chart.Axes.Right.Automatic = true; BaseChart.Chart.Series.Add(area); BaseChart.Chart.Series.Add(line); FillSampleValues(area, 15, 200); area.Color = var.GetPaletteBasic[0]; area.Title = "Area"; //area.AreaLinesPen.Color = var.GetPaletteBasic[0].AddLuminosity(-0.2); area.AreaLinesPen.Visible = false; area.LinePen.Color = var.GetPaletteBasic[0].AddLuminosity(-0.2); area.LinePen.Width += 2; Themes.AplicarMarksTheme1(BaseChart); line.DataSource = area; line.Function = skeweness; line.LinePen.Width = 3; line.Color = var.GetPaletteBasic[1]; line.Title = "Skewness"; line.HorizAxis = HorizontalAxis.Bottom; line.VertAxis = VerticalAxis.Right; line.Marks.Visible = true; line.Marks.OnTop = true; line.Marks.FollowSeriesColor = true; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue + 20); }
public HistogramChart(ChartView BaseChart) { histogram = new Histogram(); var = new Variables.Variables(); tool_dataPointSelection = new DataPointSelection(BaseChart); this.BaseChart = BaseChart; BaseChart.Chart.Title.Text = "Histogram"; for (int i = 0; i < var.GetValorsHistogram.Length / 2; i++) { histogram.Add(var.GetValorsHistogram[i, 0], var.GetValorsHistogram[i, 1], var.GetPaletteBasic[0]); } BaseChart.Chart.Series.Add(histogram); BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Left.SetMinMax(0, BaseChart.Chart.Axes.Left.MaxYValue + 5); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Left.Increment = 5; BaseChart.Chart.Axes.Left.Grid.Visible = true; BaseChart.Chart.Legend.Visible = false; Themes.AplicarMarksTheme1(BaseChart); histogram.Marks.TailParams.Align = TailAlignment.BottomCenter; histogram.Marks.BackColor = var.GetPaletteBasic[0].AddLuminosity(-0.2); histogram.Marks.Width -= 15; histogram.Color = var.GetPaletteBasic[0]; histogram.LinePen.Color = var.GetPaletteBasic[0].AddLuminosity(-0.3); histogram.LinesPen.Color = var.GetPaletteBasic[0].AddLuminosity(-0.3); BaseChart.Chart.ClickSeries += tool_dataPointSelection.HistoSeries_Click; histogram.GetSeriesMark += tool_dataPointSelection.SerieHistogram_GetSeriesMark; }
// Constructor del "LineChart" public InterpolatingChartFeatures(ChartView BaseChart) { // Variables line1 = new Line(); var = new Variables.Variables(); this.BaseChart = BaseChart; tool_interpolatingLine = new Tools.InterpolatingLine(BaseChart); // ------------------------------------------------------- // PROPIEDADES DEL "BASECHART" // ------------------------------------------------------- // // ADD SERIES // BaseChart.Chart.Series.Add(line1); //BaseChart.Chart.Series.Add(line2); //BaseChart.Chart.Series.Add(line3); // // LEFT AXES // BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue + 100); BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.Title.Visible = false; BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Left.Increment = 10; BaseChart.Chart.Axes.Left.AxisPen.Visible = false; BaseChart.Chart.Axes.Left.Ticks.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = true; // // BOTTOM AXES // BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue + 50); BaseChart.Chart.Axes.Bottom.Title.Visible = false; BaseChart.Chart.Axes.Left.Increment = 10; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Bottom.Ticks.Visible = true; BaseChart.Chart.Axes.Bottom.Ticks = new Axis.TicksPen { Width = 2, Visible = true, Color = Color.FromArgb(200, 200, 200), EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10, }; // // HEADER // BaseChart.Chart.Header.Text = "Interpolating Line"; // // LEGEND // BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Series; // // PANEL // BaseChart.Chart.Panel.MarginLeft = 4; // // EVENTOS // BaseChart.Chart.ClickSeries += null; // ------------------------------------------------------- // SERIES // ------------------------------------------------------- // // LINE 1 // line1.SeriesColor = var.GetPaletteBasic[0]; line1.RecalcOptions = RecalcOptions.OnModify; line1.Title = "Line1"; line1.ClickableLine = true; line1.DefaultNullValue = 0; line1.Color = var.GetPaletteBasic[0]; line1.SeriesColor = var.GetPaletteBasic[0]; line1.Visible = true; for (int i = 0; i < var.GetValorInterpolLine1.Length; i++) { line1.Add(var.GetValorInterpolLine1[i]); } line1.Chart.Zoom.Allow = false; line1.Chart.Panning.Allow = ScrollModes.None; line1.Pointer.Visible = true; line1.VertAxis = VerticalAxis.Both; line1.HorizAxis = HorizontalAxis.Both; // // MARKS // Themes.AplicarMarksTheme1(BaseChart); #if !TEE_STD AddCursorTool(); #endif }
public HorizontalAreaChart(ChartView BaseChart) { horizArea1 = new HorizArea(); var = new Variables.Variables(); tool_dataPointSelect = new DataPointSelection(BaseChart); BaseChart.Chart.Header.Text = "People in different countries"; BaseChart.Chart.Series.Add(horizArea1); BaseChart.Chart.Legend.Visible = false; horizArea1.SeriesColor = var.GetPaletteBasic[0]; horizArea1.Chart.Zoom.Allow = false; horizArea1.Chart.Panning.Allow = ScrollModes.None; horizArea1.RecalcOptions = RecalcOptions.OnModify; horizArea1.DefaultNullValue = 0; horizArea1.AreaLines.Visible = false; horizArea1.Pointer.Visible = true; horizArea1.ClickableLine = true; horizArea1.LinePen.Width = 5; horizArea1.ClickPointer += tool_dataPointSelect.PointValue_Click; horizArea1.GetSeriesMark += tool_dataPointSelect.Serie_GetSeriesMark; horizArea1.Pointer.Style = PointerStyles.Nothing; horizArea1.Pointer.InflateMargins = false; horizArea1.ClickTolerance = 30; horizArea1.LinePen.Style = DashStyle.Solid; horizArea1.LinePen.EndCap = PenLineCap.Flat; horizArea1.LinePen.DashCap = PenLineCap.Flat; horizArea1.LinePen.Color = var.GetPaletteBasic[0].AddLuminosity(-0.2); horizArea1.VertAxis = VerticalAxis.Both; horizArea1.HorizAxis = HorizontalAxis.Both; for (int i = 0; i < var.GetValorHorizArea1.Length; i++) { horizArea1.Add(var.GetValorHorizArea1[i], var.GetValorHorizAreaX[i]); } BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue - 0.001, BaseChart.Chart.Axes.Left.MaxYValue + 0.01); BaseChart.Chart.Axes.Bottom.SetMinMax(0, BaseChart.Chart.Axes.Bottom.MaxXValue + 20000); BaseChart.Chart.Axes.Bottom.Increment = 30000; BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0K"; BaseChart.Chart.Axes.Left.Title.Pen = new ChartPen { Color = Color.Black, Width = 15 }; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Ticks = new Axis.TicksPen { Width = 2, Visible = true, Color = Color.FromArgb(200, 200, 200), EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10, }; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Left.Title.Angle = 90; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Axes.Left.Title.Text = "Countries"; BaseChart.Chart.Axes.Bottom.Title.Text = "People (K)"; BaseChart.Chart.Axes.Left.Title.Font.Size = 14; BaseChart.Chart.Axes.Bottom.Title.Font.Size = 14; BaseChart.Chart.Axes.Left.Title.CustomSize = 50; BaseChart.Chart.Axes.Left.LabelsOnAxis = true; BaseChart.Chart.Axes.Left.Labels.AutoSize = true; BaseChart.Chart.Title.AutoSize = true; BaseChart.Chart.Axes.Left.StartPosition = 1; BaseChart.Chart.ClickSeries += null; BaseChart.Chart.Panel.MarginLeft = 6; BaseChart.Chart.Axes.Left.Title.Visible = false; Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Height = 35; BaseChart.Chart.Series[0].Marks.Width = 110; BaseChart.Chart.Series[0].Marks.Font.Size = 12; }
// Constructor public StackAreaChartFeatures(ChartView BaseChart) { // Inicializar variables area1 = new Area(); area2 = new Area(); var = new Variables.Variables(); tool_dataPointSelect = new DataPointSelection(BaseChart); // Propiedades del "Chart" base BaseChart.Chart.Series.Add(area2); BaseChart.Chart.Series.Add(area1); BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Header.Text = "Mensual sells by two companies"; BaseChart.Chart.Axes.Bottom.LabelsOnAxis = true; // Propiedades de la "area1" area1.Title = "Company 1"; area1.SeriesColor = var.GetPaletteBasic[0]; area1.Chart.Zoom.Allow = false; area1.Chart.Panning.Allow = ScrollModes.None; area1.RecalcOptions = RecalcOptions.OnModify; area1.DefaultNullValue = 0; area1.ClickableLine = true; area1.AreaLines.Visible = false; area1.LinePen.Width = 5; area1.Pointer.Visible = true; area1.Pointer.Style = PointerStyles.Nothing; area1.Pointer.InflateMargins = false; area1.LinePen.Style = DashStyle.Solid; area1.LinePen.EndCap = PenLineCap.Flat; area1.LinePen.DashCap = PenLineCap.Flat; area1.LinePen.Color = var.GetPaletteBasic[0].AddLuminosity(-0.2); area1.ClickTolerance = 30; area1.ClickPointer += tool_dataPointSelect.PointValue_Click; area1.GetSeriesMark += tool_dataPointSelect.Serie_GetSeriesMark; for (int i = 0; i < var.GetValorArea1.Length; i++) { area1.Add(var.GetValorArea1[i], var.GetValorAreaX[i]); } area1.VertAxis = VerticalAxis.Both; area1.HorizAxis = HorizontalAxis.Both; area1.Marks.OnTop = true; // Propiedades de la "area2" area2.Title = "Company 2"; area2.SeriesColor = var.GetPaletteBasic[1]; area2.Chart.Zoom.Allow = false; area2.Chart.Panning.Allow = ScrollModes.None; area2.RecalcOptions = RecalcOptions.OnModify; area2.DefaultNullValue = 0; area2.ClickableLine = true; area2.ClickTolerance = 30; area2.Pointer.Visible = true; area2.Pointer.Style = PointerStyles.Nothing; area2.LinePen.Style = DashStyle.Solid; area2.LinePen.EndCap = PenLineCap.Flat; area2.LinePen.DashCap = PenLineCap.Flat; area2.LinePen.Color = var.GetPaletteBasic[0].AddLuminosity(-0.2); area2.LinePen.Color = var.GetPaletteBasic[1].AddLuminosity(-0.2); area2.AreaLines.Visible = false; area2.LinePen.Width = 5; area2.ClickPointer += tool_dataPointSelect.PointValue_Click; area2.GetSeriesMark += tool_dataPointSelect.Serie_GetSeriesMark; for (int i = 0; i < var.GetValorArea2.Length; i++) { area2.Add(var.GetValorArea2[i], var.GetValorAreaX[i]); } area2.VertAxis = VerticalAxis.Both; area2.HorizAxis = HorizontalAxis.Both; area2.Marks.OnTop = true; area1.Stacked = CustomStack.Stack; area2.Stacked = CustomStack.Stack; area1.StackGroup = 1; area2.StackGroup = 1; // Propieades de los ejes del "Chart" base BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue + 20); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Labels.TextAlign = Xamarin.Forms.TextAlignment.Start; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.Increment = 20; BaseChart.Chart.Axes.Left.Title.Visible = false; BaseChart.Chart.Axes.Left.Ticks = new Axis.TicksPen { Width = 2, Visible = true, Color = Color.FromArgb(200, 200, 200), EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10 }; BaseChart.Chart.Axes.Left.LabelsOnAxis = true; BaseChart.Chart.Axes.Left.Labels.CustomSize = 10; BaseChart.Chart.Axes.Bottom.Title.Visible = false; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Series; BaseChart.Chart.Panel.MarginRight = 5; BaseChart.Chart.ClickSeries += null; BaseChart.Chart.Panel.MarginLeft = 4; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); area1.Marks.Width = 82; area2.Marks.Width = 82; //area2.Marks. //area1.Marks.ZPosition = 1; }
public FastLineChart(ChartView BaseChart) { fastLine1 = new FastLine(); fastLine2 = new FastLine(); var = new Variables.Variables(); BaseChart.Chart.Header.Text = "Fast random picture"; BaseChart.Chart.Series.Add(fastLine1); BaseChart.Chart.Series.Add(fastLine2); BaseChart.Chart.Legend.Visible = false; fastLine1.SeriesColor = var.GetPaletteBasic[0]; fastLine1.Chart.Zoom.Allow = false; fastLine1.Chart.Panning.Allow = ScrollModes.None; fastLine1.RecalcOptions = RecalcOptions.OnModify; fastLine1.DefaultNullValue = 0; fastLine1.AutoRepaint = true; fastLine1.VertAxis = VerticalAxis.Both; fastLine1.HorizAxis = HorizontalAxis.Both; /*for (int i = 0; i < var.GetValorBubble1.Length; i++) * { * fastLine1.Add(var.GetValorBubbleX[i], var.GetValorBubble1[i], var.GetPaletteBasic[i]); * }*/ fastLine2.Title = "fastLine2"; fastLine2.SeriesColor = var.GetPaletteBasic[1]; fastLine2.Chart.Zoom.Allow = false; fastLine2.Chart.Panning.Allow = ScrollModes.None; fastLine2.AutoRepaint = true; fastLine2.RecalcOptions = RecalcOptions.OnModify; fastLine2.DefaultNullValue = 0; Random r = new Random(); int tmprandom; for (int t = 1; t < 1000; t++) { tmprandom = r.Next(Math.Abs(500 - t)) - (Math.Abs(500 - t) / 2); fastLine1.Add(1000 - t + tmprandom); fastLine2.Add(t + tmprandom); } fastLine2.VertAxis = VerticalAxis.Both; fastLine2.HorizAxis = HorizontalAxis.Both; fastLine2.Title = "fastLine2"; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue - 5, BaseChart.Chart.Axes.Left.MaxYValue + 5); BaseChart.Chart.Axes.Bottom.SetMinMax(0, BaseChart.Chart.Axes.Bottom.MaxXValue + 3); BaseChart.Chart.Axes.Bottom.Increment = 5; BaseChart.Chart.Axes.Left.Increment = 15; BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0K"; BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Left.Title.Pen = new ChartPen { Color = Color.Black, Width = 15 }; BaseChart.Chart.Axes.Left.Title.Visible = false; BaseChart.Chart.Axes.Bottom.Title.Visible = false; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Ticks = new Axis.TicksPen { Width = 2, Visible = true, Color = Color.FromArgb(200, 200, 200), EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10, }; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Left.Title.Angle = 90; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.ClickSeries += null; BaseChart.Chart.Panel.MarginLeft = 5; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); }
// Constructor del "LineChart" public Point_ScatterChart(ChartView BaseChart) { // Variables point1 = new Points(); point2 = new Points(); point3 = new Points(); point4 = new Points(); var = new Variables.Variables(); this.BaseChart = BaseChart; // Modificación del "Chart" base BaseChart.Chart.ClickSeries += null; BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Header.Text = "Pointer Series"; BaseChart.Chart.Series.Add(point1); BaseChart.Chart.Series.Add(point2); BaseChart.Chart.Series.Add(point3); BaseChart.Chart.Series.Add(point4); for (int i = 0; i < var.GetValorPointScatter1.Length; i++) { } point1.Add(var.GetValorPointScatter1); point2.Add(var.GetValorPointScatter2); point3.Add(var.GetValorPointScatter3); point4.Add(var.GetValorPointScatter4); // Propiedades del "point1" point1.LinePen.Width = 6; point1.LinePen.Color = var.GetPaletteBasic[0]; point1.Pointer.Color = var.GetPaletteBasic[0]; point1.Pointer.InflateMargins = true; point1.Pointer.Visible = true; point1.Pointer.HorizSize = 11; point1.Pointer.VertSize = 11; point1.Pointer.Pen.EndCap = PenLineCap.Round; point1.Pointer.Pen.Color = Color.White; point1.Pointer.Pen.Width = 5; point1.Pointer.Style = PointerStyles.Sphere; point1.SeriesColor = var.GetPaletteBasic[0]; point1.Chart.Zoom.Allow = false; point1.Chart.Panning.Allow = ScrollModes.None; point1.RecalcOptions = RecalcOptions.OnModify; point1.Title = "Point1"; point1.DefaultNullValue = 0; point1.VertAxis = VerticalAxis.Both; point1.HorizAxis = HorizontalAxis.Both; // Propiedades del "point2" point2.LinePen = new ChartPen { Width = 6, Color = var.GetPaletteBasic[1], }; point2.Pointer = new SeriesPointer(BaseChart.Chart, point2) { Color = var.GetPaletteBasic[1], InflateMargins = true, HorizSize = 11, VertSize = 11, Pen = new ChartPen { EndCap = PenLineCap.Round, Color = Xamarin.Forms.Color.White, Width = 5 }, Style = PointerStyles.Sphere }; point2.SeriesColor = var.GetPaletteBasic[1]; point2.Chart.Zoom.Allow = false; point2.Chart.Panning.Allow = ScrollModes.None; point2.RecalcOptions = RecalcOptions.OnModify; point2.Title = "Point2"; point2.VertAxis = VerticalAxis.Both; point2.HorizAxis = HorizontalAxis.Both; // Propiedades del "point3" point3.LinePen = new ChartPen { Width = 6, Color = var.GetPaletteBasic[1], }; point3.Pointer = new SeriesPointer(BaseChart.Chart, point2) { Color = var.GetPaletteBasic[1], InflateMargins = true, HorizSize = 11, VertSize = 11, Pen = new ChartPen { EndCap = PenLineCap.Round, Color = Xamarin.Forms.Color.White, Width = 5 }, Style = PointerStyles.Sphere }; point3.SeriesColor = var.GetPaletteBasic[2]; point3.Chart.Zoom.Allow = false; point3.Chart.Panning.Allow = ScrollModes.None; point3.RecalcOptions = RecalcOptions.OnModify; point3.Title = "Point3"; point3.VertAxis = VerticalAxis.Both; point3.HorizAxis = HorizontalAxis.Both; // Propiedades del "point4" point4.LinePen = new ChartPen { Width = 6, Color = var.GetPaletteBasic[1], }; point4.Pointer = new SeriesPointer(BaseChart.Chart, point2) { Color = var.GetPaletteBasic[1], InflateMargins = true, HorizSize = 11, VertSize = 11, Pen = new ChartPen { EndCap = PenLineCap.Round, Color = Xamarin.Forms.Color.White, Width = 5 }, Style = PointerStyles.Sphere }; point4.SeriesColor = var.GetPaletteBasic[3]; point4.Chart.Zoom.Allow = false; point4.Chart.Panning.Allow = ScrollModes.None; point4.RecalcOptions = RecalcOptions.OnModify; point4.Title = "Point4"; point4.VertAxis = VerticalAxis.Both; point4.HorizAxis = HorizontalAxis.Both; // Características de los ejes del "Chart" base BaseChart.Chart.Axes.Left.SetMinMax(0, BaseChart.Chart.Axes.Left.MaxYValue + 2); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Increment = 1; BaseChart.Chart.Axes.Left.Increment = 3; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.Title = null; BaseChart.Chart.Axes.Bottom.Title = null; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Grid.Visible = true; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Series; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Axes.Left.Ticks.Visible = true; BaseChart.Chart.Panel.MarginLeft = 2; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); }
public ZoomPanningChartFeatures(ChartView BaseChart) { // Variables line1 = new Line(); var = new Variables.Variables(); this.BaseChart = BaseChart; tool_dataPointSelect = new Tools.DataPointSelection(BaseChart); // Modificación del "Chart" base BaseChart.Chart.ClickSeries += null; BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Panning.Allow = ScrollModes.Both; BaseChart.Chart.Panning.Active = true; BaseChart.Chart.Panning.Chart = BaseChart.Chart; BaseChart.Chart.Zoom.Active = true; BaseChart.Chart.Zoom.Zoomed = true; BaseChart.Chart.Zoom.Allow = true; BaseChart.Chart.Zoom.Chart = BaseChart.Chart; BaseChart.Chart.Header.Text = "Zoom and Panning a Chart"; BaseChart.Chart.Series.Add(line1); line1.FillSampleValues(30); // Propiedades de la "line1" line1.LinePen.Width = 6; line1.LinePen.Color = var.GetPaletteBasic[0]; line1.Pointer.Color = var.GetPaletteBasic[0]; line1.Pointer.InflateMargins = true; line1.Pointer.Visible = true; line1.Pointer.HorizSize = 11; line1.Pointer.VertSize = 11; line1.Pointer.Pen.EndCap = PenLineCap.Round; line1.Pointer.Pen.Color = Xamarin.Forms.Color.White; line1.Pointer.Pen.Width = 5; line1.Pointer.Style = PointerStyles.Sphere; line1.SeriesColor = var.GetPaletteBasic[0]; line1.ClickTolerance = 40; line1.RecalcOptions = RecalcOptions.OnModify; line1.Title = "Births"; line1.DefaultNullValue = 0; line1.ClickPointer += tool_dataPointSelect.PointValue_Click; line1.GetSeriesMark += tool_dataPointSelect.Serie_GetSeriesMark; line1.VertAxis = VerticalAxis.Both; line1.HorizAxis = HorizontalAxis.Both; // Características de los ejes del "Chart" base BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue - 50, BaseChart.Chart.Axes.Left.MaxYValue + 50); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue + 20, BaseChart.Chart.Axes.Bottom.MaxXValue - 20); BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Increment = 1; BaseChart.Chart.Axes.Left.Increment = 10; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.Title = null; BaseChart.Chart.Axes.Bottom.Title = null; BaseChart.Chart.Axes.Left.AxisPen.Visible = false; BaseChart.Chart.Axes.Left.Ticks.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = true; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Series; BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Panel.MarginLeft = 5; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 18; ImplementiOSMarks(BaseChart.Chart); }
public BatteryLinearChart(ChartView BaseChart) { linearGauge = new LinearGauge(); var value = Battery.ChargeLevel * 100; Battery.BatteryChanged += Battery_BatteryChanged; simulationMark = new Annotation(); this.BaseChart = BaseChart; BaseChart.Chart.Series.Add(linearGauge); BaseChart.Chart.Footer.Visible = true; BaseChart.Chart.Footer.Font.Size = 20; linearGauge.Value = 100 - value; linearGauge.Maximum = 100; linearGauge.Minimum = 0; linearGauge.Axis.AxisPen.Color = Color.Black; linearGauge.Axis.MinorGrid.Visible = true; linearGauge.Axis.Labels.Font.Size = 12; linearGauge.Axis.Labels.Color = Color.Blue; linearGauge.Axis.Ticks.Visible = true; linearGauge.Axis.Increment = 10; BaseChart.Rotation = 90; BaseChart.BackgroundColor = Color.White; BaseChart.Chart.Axes.Bottom.Labels.Font.Size = 16; BaseChart.Chart.Axes.Bottom.Labels.Font.Color = Color.Black; BaseChart.Chart.Axes.Bottom.Labels.Transparency = 100; BaseChart.Chart.Axes.Bottom.MinorTicks.Visible = false; BaseChart.Chart.Axes.Bottom.MinorTicks.Length = 20; BaseChart.Chart.Axes.Bottom.MinorTicks.Width = 1; BaseChart.Chart.Axes.Bottom.MinorTicks.Transparency = 100; BaseChart.Chart.Axes.Bottom.Ticks.Visible = false; linearGauge.Hand.Gradient.Visible = false; linearGauge.Hand.Color = Color.White; linearGauge.Hand.Transparency = 0; linearGauge.GreenLine.Visible = false; linearGauge.RedLine.Visible = false; linearGauge.MinorTicks.Visible = false; linearGauge.Ticks.Visible = true; linearGauge.Ticks.VertSize = 150; linearGauge.Ticks.HorizSize = 2.5; linearGauge.Ticks.Color = Color.White; linearGauge.Ticks.Pen.Color = Color.White; linearGauge.MaxValueIndicator.Visible = false; linearGauge.FaceBrush.Gradient.Visible = false; linearGauge.FaceBrush.Color = Color.White; linearGauge.ValueAreaBrush.Visible = true; AddFaceBrushColor(value); linearGauge.IsoVertAxes = false; linearGauge.IsoHorizAxes = false; linearGauge.Marks.Visible = false; Themes.AplicarMarksTheme1(BaseChart); linearGauge.Marks.Angle = 90; linearGauge.Marks.TailStyle = MarksTail.None; linearGauge.Marks.BackColor = Color.White; linearGauge.Marks.Width += 50; linearGauge.Marks.Font.Color = Color.Black; linearGauge.GetSeriesMark += LinearGauge_GetSeriesMark; BaseChart.Chart.AfterDraw += Chart_AfterDraw; }
// Constructor del "LineChart" public GanttChart(ChartView BaseChart) { // Variables gantt1 = new Gantt(); var = new Variables.Variables(); this.BaseChart = BaseChart; // Modificación del "Chart" base BaseChart.Chart.ClickSeries += null; BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Header.Text = "The development of the product"; BaseChart.Chart.Series.Add(gantt1); //gantt1.FillSampleValues(10); for (int i = 0; i < var.GetValorGantt1.Length; i++) { gantt1.Add(var.GetValorTimeSGantt[i], var.GetValorTimeEGantt[i], i + 1, var.GetValorGantt1[i]); } // Propiedades de la "line1" gantt1.LinePen.Width = 6; gantt1.LinePen.Color = var.GetPaletteBasic[0]; gantt1.Pointer.Color = var.GetPaletteBasic[0]; gantt1.Pointer.InflateMargins = true; gantt1.Pointer.Visible = true; gantt1.Pointer.HorizSize = 11; gantt1.Pointer.VertSize = 11; gantt1.Pointer.Pen.EndCap = PenLineCap.Round; gantt1.Pointer.Pen.Color = Color.White; gantt1.Pointer.Pen.Width = 1; gantt1.Pointer.Style = PointerStyles.Rectangle; gantt1.SeriesColor = var.GetPaletteBasic[0]; gantt1.Chart.Zoom.Allow = false; gantt1.Chart.Panning.Allow = ScrollModes.None; gantt1.RecalcOptions = RecalcOptions.OnModify; gantt1.Title = "Product 1"; gantt1.DefaultNullValue = 0; gantt1.ConnectingPen.Visible = true; gantt1.ConnectingPen.Color = Color.Black; gantt1.ConnectingPen.Width = 2; gantt1.NextTasks[0] = 1; gantt1.NextTasks[1] = 2; gantt1.NextTasks[2] = 5; gantt1.NextTasks[3] = 4; gantt1.NextTasks[4] = 6; gantt1.VertAxis = VerticalAxis.Both; gantt1.HorizAxis = HorizontalAxis.Both; // Características de los ejes del "Chart" base BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue + 1); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yy"; BaseChart.Chart.Axes.Bottom.Increment = 15; BaseChart.Chart.Axes.Left.Increment = 1; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.Title = null; BaseChart.Chart.Axes.Bottom.Title = null; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Ticks.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = true; BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Panel.MarginLeft = 13; BaseChart.Chart.Panel.MarginRight = 6; BaseChart.Chart.Axes.Left.LabelsOnAxis = true; BaseChart.Chart.Axes.Left.Ticks = new TicksPen { Width = 2, Visible = true, Color = Color.White, EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10, }; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); }
public FLineRealTimeChartFeatures(ChartView BaseChart) { fastLine1 = new FastLine(); fastLine2 = new FastLine(); var = new Variables.Variables(); this.BaseChart = BaseChart; pointsCreate = 0; BaseChart.Chart.Header.Text = "Fast random picture"; BaseChart.Chart.Series.Add(fastLine1); BaseChart.Chart.Series.Add(fastLine2); BaseChart.Chart.Legend.Visible = false; fastLine1.SeriesColor = var.GetPaletteBasic[0]; fastLine1.Chart.Zoom.Allow = false; fastLine1.Chart.Panning.Allow = ScrollModes.None; fastLine1.RecalcOptions = RecalcOptions.OnModify; fastLine1.DefaultNullValue = 0; fastLine1.AutoRepaint = true; fastLine1.VertAxis = VerticalAxis.Both; fastLine1.HorizAxis = HorizontalAxis.Both; fastLine2.SeriesColor = var.GetPaletteBasic[var.GetPaletteBasic.Length - 1]; fastLine2.Chart.Zoom.Allow = false; fastLine2.Chart.Panning.Allow = ScrollModes.None; fastLine2.RecalcOptions = RecalcOptions.OnModify; fastLine2.DefaultNullValue = 0; fastLine2.AutoRepaint = true; fastLine2.VertAxis = VerticalAxis.Both; fastLine2.HorizAxis = HorizontalAxis.Both; Random r = new Random(); int tmprandom; for (int t = 1; t < 1000; t++) { tmprandom = r.Next(Math.Abs(500 - t)) - (Math.Abs(500 - t) / 2); fastLine1.Add(1000 - t + tmprandom); fastLine2.Add(t + tmprandom); } BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue - 100, BaseChart.Chart.Axes.Left.MaxYValue + 100); BaseChart.Chart.Axes.Bottom.SetMinMax(0, BaseChart.Chart.Axes.Bottom.MaxXValue + 3); BaseChart.Chart.Axes.Bottom.Increment = 5; BaseChart.Chart.Axes.Left.Increment = 15; BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0K"; BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Left.Title.Pen = new ChartPen { Color = Xamarin.Forms.Color.Black, Width = 15 }; BaseChart.Chart.Axes.Left.Title.Visible = false; BaseChart.Chart.Axes.Bottom.Title.Visible = false; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Ticks = new Axis.TicksPen { Width = 2, Visible = true, Color = Xamarin.Forms.Color.FromRgb(200, 200, 200), EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10, }; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Left.Title.Angle = 90; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.ClickSeries += null; BaseChart.Chart.Panel.MarginLeft = 5; BaseChart.Chart.AfterDraw += Chart_AfterDraw; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); }
public PercentStdFunctionsChart(ChartView BaseChart) { percentFunction = new Steema.TeeChart.Functions.PercentChange(); area = new Area(); thePercentLine = new Line(); var = new Variables.Variables(); for (int i = 0; i < var.GetValorStdPercent1.Length; i++) { area.Add(i, var.GetValorStdPercent1[i]); } BaseChart.Chart.Series.Add(area); BaseChart.Chart.Series.Add(thePercentLine); thePercentLine.Function = percentFunction; thePercentLine.DataSource = new object[] { area }; area.SeriesColor = var.GetPaletteBasic[0]; thePercentLine.SeriesColor = var.GetPaletteBasic[2]; area.Title = "Data"; area.Smoothed = true; thePercentLine.Title = "Percent Change"; thePercentLine.LinePen.Width = 6; thePercentLine.Pointer.Visible = false; thePercentLine.Marks.Visible = false; thePercentLine.VertAxis = VerticalAxis.Right; thePercentLine.LinePen.DashCap = PenLineCap.Round; thePercentLine.LinePen.EndCap = PenLineCap.Round; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue + 2); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Increment = 3; BaseChart.Chart.Axes.Bottom.Labels.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Header.Visible = false; Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 14; BaseChart.Chart.Series[1].Marks.Font.Size = 14; area.Marks.Pen.Visible = false; area.Marks.TailStyle = MarksTail.None; area.Transparency = 50; area.AreaLines.Visible = false; area.LinePen.Color = area.Color.AddLuminosity(-0.2); area.LinePen.Width = 5; area.LinePen.Transparency = 50; area.AreaLines.Width = 0; area.AreaLines.Transparency = 100; area.AreaLinesPen.Width = 1; area.AreaLinesPen.Visible = true; BaseChart.Chart.Series[0].Marks.TextAlign = TextAlignment.Center; BaseChart.Chart.Series[0].Marks.AutoSize = true; BaseChart.Chart.Series[0].Marks.Color = Xamarin.Forms.Color.Transparent; //BaseChart.Chart.Series[1].Marks.ShapeBounds = new Xamarin.Forms.Rectangle { Width = 85, Height = 40 }; BaseChart.Chart.Series[1].Marks.TailStyle = MarksTail.None; BaseChart.Chart.Panel.MarginLeft = 3; }
public Semi_DonutChartFeatures(ChartView BaseChart) { donut1 = new Donut(); var = new Variables.Variables(); this.BaseChart = BaseChart; tool_dataPointSelect = new Tools.DataPointSelection(BaseChart); BaseChart.Chart.Header.Text = "How old are the workers"; BaseChart.Chart.Series.Add(donut1); BaseChart.Chart.Legend.Visible = true; donut1.SeriesColor = var.GetPaletteBasic[0]; donut1.Chart.Zoom.Allow = false; donut1.Chart.Panning.Allow = ScrollModes.None; donut1.AutoCircleResize = true; donut1.RecalcOptions = RecalcOptions.OnModify; donut1.DefaultNullValue = 0; donut1.Circled = true; donut1.AutoPenColor = false; donut1.DarkPen = false; donut1.Pen.Width = 3; donut1.Pen.Style = DashStyle.Solid; donut1.Pen.Visible = true; donut1.Pen.Color = Color.White; donut1.AngleSize = 180; donut1.VertAxis = VerticalAxis.Both; donut1.HorizAxis = HorizontalAxis.Both; donut1.CustomXRadius = BaseChart.Chart.Axes.Bottom.MaxXValue; for (int i = 0; i < var.GetValorDonut1.Length; i++) { donut1.Add(var.GetValorDonut1[i], var.GetPaletteBasic[i]); } donut1.Title = "pieAnimals"; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinYValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Bottom.Increment = 5; BaseChart.Chart.Axes.Left.Increment = 5; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Ticks = new Axis.TicksPen { Width = 2, Visible = true, Color = Color.FromArgb(0, 200, 200, 200), EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10, }; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Left.Title.Angle = 90; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Panel.MarginLeft = 5; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Values; BaseChart.Chart.Legend.Symbol.Position = LegendSymbolPosition.Right; BaseChart.Chart.SubHeader.Visible = true; BaseChart.Chart.SubHeader.Text = "A"; BaseChart.Chart.SubHeader.Font.Size = 80; BaseChart.Chart.SubHeader.Color = Color.White; BaseChart.Chart.SubHeader.Transparency = 100; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); donut1.Marks.Pen.Visible = false; donut1.Marks.FollowSeriesColor = false; donut1.Marks.Style = MarksStyles.Percent; donut1.Marks.Brush.Transparency = 100; donut1.MarksPie.VertCenter = true; donut1.Marks.Transparent = true; donut1.Marks.Frame.Transparency = 100; BaseChart.Chart.Series[0].Marks.Font.Size = 18; donut1.MarksPie.InsideSlice = true; if (App.ScreenWidth < 600) { donut1.Marks.Font.Size = 15; } else { donut1.Marks.Font.Size = 18; } BaseChart.Chart.ClickSeries += tool_dataPointSelect.DonutChart_ClickSeries; }
public SubtStdFunctionsChart(ChartView BaseChart) { subtFunction = new Steema.TeeChart.Functions.Subtract(); bar1 = new Bar(); bar2 = new Bar(); theSubtLine = new Line(); var = new Variables.Variables(); for (int i = 0; i < var.GetValorStdSubs1.Length; i++) { bar1.Add(i, var.GetValorStdSubs1[i]); } for (int i = 0; i < var.GetValorStdSubs2.Length; i++) { bar2.Add(i, var.GetValorStdSubs2[i]); } BaseChart.Chart.Series.Add(bar1); BaseChart.Chart.Series.Add(bar2); BaseChart.Chart.Series.Add(theSubtLine); theSubtLine.Function = subtFunction; theSubtLine.DataSource = new object[] { bar1, bar2 }; bar1.Title = "Data 1"; bar1.MarksOnBar = true; bar1.MarksLocation = MarksLocation.Start; bar1.SeriesColor = var.GetPaletteBasic[0]; bar2.Title = "Data 2"; bar2.MarksOnBar = true; bar2.MarksLocation = MarksLocation.Start; bar2.SeriesColor = var.GetPaletteBasic[1]; theSubtLine.Title = "Subtract"; theSubtLine.LinePen.Width = 6; theSubtLine.Pointer.Style = PointerStyles.Sphere; theSubtLine.Pointer.InflateMargins = true; theSubtLine.Pointer.HorizSize = 5; theSubtLine.Pointer.VertSize = 5; theSubtLine.TreatNulls = TreatNullsStyle.DoNotPaint; theSubtLine.Pointer.Visible = true; theSubtLine.Marks.Visible = true; theSubtLine.SeriesColor = var.GetPaletteBasic[2]; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue + 0.3, BaseChart.Chart.Axes.Left.MaxYValue + 3); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Increment = 10; BaseChart.Chart.Axes.Bottom.Labels.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Header.Visible = false; Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 14; BaseChart.Chart.Series[1].Marks.Font.Size = 14; bar1.Marks.Pen.Visible = false; bar2.Marks.Pen.Visible = false; bar1.Marks.TailStyle = MarksTail.None; bar2.Marks.TailStyle = MarksTail.None; BaseChart.Chart.Series[0].Marks.TextAlign = TextAlignment.Center; BaseChart.Chart.Series[0].Marks.AutoSize = true; BaseChart.Chart.Series[0].Marks.Color = Xamarin.Forms.Color.Transparent; BaseChart.Chart.Series[1].Marks.TextAlign = TextAlignment.Center; BaseChart.Chart.Series[1].Marks.AutoSize = true; BaseChart.Chart.Series[1].Marks.Color = Xamarin.Forms.Color.Transparent; BaseChart.Chart.Series[2].Marks.TailStyle = MarksTail.None; BaseChart.Chart.Panel.MarginLeft = 5; }
public GradientBarChartFeatures(ChartView BaseChart) { bar1 = new Bar(); bar2 = new Bar(); var = new Variables.Variables(); this.BaseChart = BaseChart; BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Header.Text = "Time spent on certain activities"; BaseChart.Chart.Series.Add(bar1); BaseChart.Chart.Series.Add(bar2); bar1.Colors = new ColorList { var.GetPaletteBasic[0] }; bar1.SeriesColor = var.GetPaletteBasic[0]; bar1.Chart.Zoom.Allow = false; bar1.Chart.Panning.Allow = ScrollModes.None; bar1.RecalcOptions = RecalcOptions.OnModify; bar1.Title = "Man 1"; bar1.DefaultNullValue = 0; for (int i = 0; i < var.GetValorColumn1.Length; i++) { bar1.Add(var.GetValorGradientBar1[i], var.GetValorGradientBarX[i]); } bar1.MarksOnBar = true; bar1.MarksLocation = MarksLocation.Start; bar1.Marks.Style = MarksStyles.Value; bar1.BarWidthPercent = 80; bar1.Gradient.Visible = true; bar1.Gradient.Direction = GradientDirection.TopBottom; bar1.Gradient.StartColor = var.GetPaletteBasic[0].AddLuminosity(-0.25); bar1.Gradient.MiddleColor = var.GetPaletteBasic[0]; bar1.Gradient.EndColor = var.GetPaletteBasic[0].AddLuminosity(0.25); bar1.VertAxis = VerticalAxis.Both; bar1.HorizAxis = HorizontalAxis.Both; bar2.Colors = new ColorList { var.GetPaletteBasic[1] }; bar2.SeriesColor = var.GetPaletteBasic[1]; bar2.Chart.Zoom.Allow = false; bar2.Chart.Panning.Allow = ScrollModes.None; bar2.RecalcOptions = RecalcOptions.OnModify; bar2.Title = "Man 2"; bar2.DefaultNullValue = 0; for (int i = 0; i < var.GetValorColumn2.Length; i++) { bar2.Add(var.GetValorGradientBar2[i], var.GetValorGradientBarX[i]); } bar2.ZOrder = 0; bar2.MarksOnBar = true; bar2.Marks.Style = MarksStyles.Value; bar2.MarksLocation = MarksLocation.Start; bar2.BarWidthPercent = 80; bar2.Gradient.Visible = true; bar2.Gradient.Direction = GradientDirection.TopBottom; bar2.Gradient.StartColor = var.GetPaletteBasic[1].AddLuminosity(-0.25); bar2.Gradient.MiddleColor = var.GetPaletteBasic[1]; bar2.Gradient.EndColor = var.GetPaletteBasic[1].AddLuminosity(0.25); bar2.VertAxis = VerticalAxis.Both; bar2.HorizAxis = HorizontalAxis.Both; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue + 10); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Title = null; BaseChart.Chart.Axes.Bottom.Title = null; BaseChart.Chart.Axes.Left.Visible = false; BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Axes.Left.Increment = 2; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Series; //BaseChart.Chart.ClickSeries += Chart_ClickSeries; BaseChart.Chart.Axes.Left.Labels.CustomSize = 0; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 14; BaseChart.Chart.Series[1].Marks.Font.Size = 14; bar1.Marks.Pen.Visible = false; bar2.Marks.Pen.Visible = false; BaseChart.Chart.Series[0].Marks.TextAlign = Xamarin.Forms.TextAlignment.Center; BaseChart.Chart.Series[0].Marks.AutoSize = true; BaseChart.Chart.Series[0].Marks.Color = Color.Transparent; BaseChart.Chart.Series[1].Marks.TextAlign = Xamarin.Forms.TextAlignment.Center; BaseChart.Chart.Series[1].Marks.AutoSize = true; BaseChart.Chart.Series[1].Marks.Color = Color.Transparent; BaseChart.Chart.Panel.MarginLeft = 5; }
public ColumnBarChart(ChartView BaseChart) { bar1 = new Bar(); bar2 = new Bar(); bar3 = new Bar(); var = new Variables.Variables(); this.BaseChart = BaseChart; BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Header.Text = "Civil status of people in the bus"; BaseChart.Chart.Series.Add(bar1); BaseChart.Chart.Series.Add(bar2); BaseChart.Chart.Series.Add(bar3); bar1.Colors = new ColorList { var.GetPaletteBasic[0] }; bar1.SeriesColor = var.GetPaletteBasic[0]; bar1.Chart.Zoom.Allow = false; bar1.Chart.Panning.Allow = ScrollModes.None; bar1.RecalcOptions = RecalcOptions.OnModify; bar1.Title = "Bus 1"; bar1.DefaultNullValue = 0; for (int i = 0; i < var.GetValorColumn1.Length; i++) { bar1.Add(var.GetValorColumn1[i], var.GetValorColumnX[i]); } bar1.MarksOnBar = true; bar1.Marks.Style = MarksStyles.Value; bar1.BarWidthPercent = 80; bar1.VertAxis = VerticalAxis.Both; bar1.HorizAxis = HorizontalAxis.Both; bar2.Colors = new ColorList { var.GetPaletteBasic[1] }; bar2.SeriesColor = var.GetPaletteBasic[1]; bar2.Chart.Zoom.Allow = false; bar2.Chart.Panning.Allow = ScrollModes.None; bar2.RecalcOptions = RecalcOptions.OnModify; bar2.Title = "Bus 2"; bar2.DefaultNullValue = 0; for (int i = 0; i < var.GetValorColumn2.Length; i++) { bar2.Add(var.GetValorColumn2[i], var.GetValorColumnX[i]); } bar2.ZOrder = 0; bar2.MarksOnBar = true; bar2.Marks.Style = MarksStyles.Value; bar2.BarWidthPercent = 80; bar2.VertAxis = VerticalAxis.Both; bar2.HorizAxis = HorizontalAxis.Both; bar3.Colors = new ColorList { var.GetPaletteBasic[2] }; bar3.SeriesColor = var.GetPaletteBasic[2]; bar3.Chart.Zoom.Allow = false; bar3.Chart.Panning.Allow = ScrollModes.None; bar3.RecalcOptions = RecalcOptions.OnModify; bar3.Title = "Bus 3"; bar3.DefaultNullValue = 0; for (int i = 0; i < var.GetValorColumn3.Length; i++) { bar3.Add(var.GetValorColumn3[i], var.GetValorColumnX[i]); } bar3.MarksOnBar = true; bar3.Marks.Style = MarksStyles.Value; bar3.BarWidthPercent = 80; bar3.VertAxis = VerticalAxis.Both; bar3.HorizAxis = HorizontalAxis.Both; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue + 1); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Title = null; BaseChart.Chart.Axes.Bottom.Title = null; BaseChart.Chart.Axes.Left.Visible = false; BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Axes.Left.Increment = 2; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Series; //BaseChart.Chart.ClickSeries += Chart_ClickSeries; BaseChart.Chart.Axes.Left.Labels.CustomSize = 0; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 14; BaseChart.Chart.Series[1].Marks.Font.Size = 14; BaseChart.Chart.Series[2].Marks.Font.Size = 14; bar1.Marks.Pen.Visible = false; bar2.Marks.Pen.Visible = false; bar3.Marks.Pen.Visible = false; BaseChart.Chart.Series[0].Marks.TextAlign = Xamarin.Forms.TextAlignment.Center; BaseChart.Chart.Series[0].Marks.AutoSize = true; BaseChart.Chart.Series[0].Marks.Color = Color.Transparent; BaseChart.Chart.Series[1].Marks.TextAlign = Xamarin.Forms.TextAlignment.Center; BaseChart.Chart.Series[1].Marks.AutoSize = true; BaseChart.Chart.Series[1].Marks.Color = Color.Transparent; BaseChart.Chart.Series[2].Marks.TextAlign = Xamarin.Forms.TextAlignment.Center; BaseChart.Chart.Series[2].Marks.AutoSize = true; BaseChart.Chart.Series[2].Marks.Color = Color.Transparent; BaseChart.Chart.Panel.MarginLeft = 5; //BaseChart.Chart.AfterDraw += Chart_AfterDrawAsync; }
public MultStdFunctionsChart(ChartView BaseChart) { multFunction = new Steema.TeeChart.Functions.Multiply(); bar1 = new Bar(); bar2 = new Bar(); theMultLine = new Line(); var = new Variables.Variables(); for (int i = 0; i < var.GetValorStdMult1.Length; i++) { bar1.Add(i, var.GetValorStdMult1[i]); } for (int i = 0; i < var.GetValorStdMult2.Length; i++) { bar2.Add(i, var.GetValorStdMult2[i]); } BaseChart.Chart.Series.Add(bar1); BaseChart.Chart.Series.Add(bar2); BaseChart.Chart.Series.Add(theMultLine); theMultLine.Function = multFunction; theMultLine.DataSource = new object[] { bar1, bar2 }; bar1.SeriesColor = var.GetPaletteBasic[0]; bar2.SeriesColor = var.GetPaletteBasic[1]; theMultLine.SeriesColor = var.GetPaletteBasic[2]; bar1.Title = "Data 1"; bar1.MarksOnBar = true; bar1.MarksLocation = MarksLocation.Start; bar2.Title = "Data 2"; bar2.MarksOnBar = true; bar2.MarksLocation = MarksLocation.Start; theMultLine.Title = "Multiply"; theMultLine.LinePen.Width = 6; theMultLine.Pointer.Style = PointerStyles.Sphere; theMultLine.Pointer.InflateMargins = true; theMultLine.Pointer.HorizSize = 5; theMultLine.Pointer.VertSize = 5; theMultLine.Pointer.Visible = true; theMultLine.Marks.Visible = true; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue + 0.1, BaseChart.Chart.Axes.Left.MaxYValue + 2); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Increment = 3; BaseChart.Chart.Axes.Bottom.Labels.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Header.Visible = false; Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 14; BaseChart.Chart.Series[1].Marks.Font.Size = 14; bar1.Marks.Pen.Visible = false; bar2.Marks.Pen.Visible = false; bar1.Marks.TailStyle = MarksTail.None; bar2.Marks.TailStyle = MarksTail.None; BaseChart.Chart.Series[0].Marks.TextAlign = TextAlignment.Center; BaseChart.Chart.Series[0].Marks.AutoSize = true; BaseChart.Chart.Series[0].Marks.Color = Xamarin.Forms.Color.Transparent; BaseChart.Chart.Series[1].Marks.TextAlign = TextAlignment.Center; BaseChart.Chart.Series[1].Marks.AutoSize = true; BaseChart.Chart.Series[1].Marks.Color = Xamarin.Forms.Color.Transparent; //BaseChart.Chart.Series[2].Marks.ShapeBounds = new Xamarin.Forms.Rectangle { Width = 80, Height = 50 }; BaseChart.Chart.Series[2].Marks.TailStyle = MarksTail.None; BaseChart.Chart.Panel.MarginLeft = 5; ImplementiOSMarks(BaseChart.Chart); }
// Constructor del "LineChart" public ShapeChart(ChartView BaseChart) { // Variables shape1 = new Steema.TeeChart.Styles.Shape(); shape2 = new Steema.TeeChart.Styles.Shape(); shape3 = new Steema.TeeChart.Styles.Shape(); shape4 = new Steema.TeeChart.Styles.Shape(); var = new Variables.Variables(); this.BaseChart = BaseChart; // ------------------------------------------------------- // PROPIEDADES DEL "BASECHART" // ------------------------------------------------------- // // ADD SERIES // BaseChart.Chart.Series.Add(shape4); BaseChart.Chart.Series.Add(shape3); BaseChart.Chart.Series.Add(shape2); BaseChart.Chart.Series.Add(shape1); // // LEFT AXES // BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue + 100); BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.Title.Visible = false; BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Left.Increment = 10; BaseChart.Chart.Axes.Left.AxisPen.Visible = false; BaseChart.Chart.Axes.Left.Ticks.Visible = true; BaseChart.Chart.Axes.Left.Ticks = new TicksPen { Width = 2, Visible = true, Color = Color.FromArgb(200, 200, 200), EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10, }; BaseChart.Chart.Axes.Left.Grid.Visible = true; // // BOTTOM AXES // BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue + 100); BaseChart.Chart.Axes.Bottom.Title.Visible = false; BaseChart.Chart.Axes.Left.Increment = 10; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Bottom.Ticks.Visible = true; BaseChart.Chart.Axes.Left.Ticks = new TicksPen { Width = 2, Visible = true, Color = Color.FromArgb(200, 200, 200), EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10, }; // // HEADER // BaseChart.Chart.Header.Text = "Some shapes"; // // LEGEND // BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Series; BaseChart.Chart.Legend.TextSymbolGap = 30; // // PANEL // BaseChart.Chart.Panel.MarginLeft = 2; // // EVENTOS // BaseChart.Chart.ClickSeries += null; // ------------------------------------------------------- // SERIES // ------------------------------------------------------- // // SHAPE 1 // shape1.SeriesColor = var.GetPaletteBasic[0]; shape1.RecalcOptions = RecalcOptions.OnModify; shape1.Title = "Diamond"; shape1.DefaultNullValue = 0; shape1.Style = ShapeStyles.Diamond; shape1.Color = var.GetPaletteBasic[0]; shape1.SeriesColor = var.GetPaletteBasic[0]; shape1.Visible = true; for (int i = 0; i < var.GetValorShape1X.Length; i++) { shape1.Add(var.GetValorShape1X[i], var.GetValorShape1Y[i]); } shape1.Chart.Zoom.Allow = false; shape1.Chart.Panning.Allow = ScrollModes.None; shape1.VertAxis = VerticalAxis.Both; shape1.HorizAxis = HorizontalAxis.Both; // // SHAPE 2 // shape2.SeriesColor = var.GetPaletteBasic[1]; shape2.RecalcOptions = RecalcOptions.OnModify; shape2.Title = "Circle"; shape2.DefaultNullValue = 0; shape2.Style = ShapeStyles.Circle; shape2.Color = var.GetPaletteBasic[1]; shape2.SeriesColor = var.GetPaletteBasic[1]; shape2.Visible = true; for (int i = 0; i < var.GetValorShape2X.Length; i++) { shape2.Add(var.GetValorShape2X[i], var.GetValorShape2Y[i]); } shape2.Chart.Zoom.Allow = false; shape2.Chart.Panning.Allow = ScrollModes.None; shape2.VertAxis = VerticalAxis.Both; shape2.HorizAxis = HorizontalAxis.Both; // // SHAPE 3 // shape3.SeriesColor = var.GetPaletteBasic[2]; shape3.RecalcOptions = RecalcOptions.OnModify; shape3.Title = "Star"; shape3.DefaultNullValue = 0; shape3.Style = ShapeStyles.Star; shape3.Color = var.GetPaletteBasic[2]; shape3.SeriesColor = var.GetPaletteBasic[2]; shape3.Visible = true; for (int i = 0; i < var.GetValorShape3X.Length; i++) { shape3.Add(var.GetValorShape3X[i], var.GetValorShape3Y[i]); } shape3.Chart.Zoom.Allow = false; shape3.Chart.Panning.Allow = ScrollModes.None; shape3.VertAxis = VerticalAxis.Both; shape3.HorizAxis = HorizontalAxis.Both; // // SHAPE 4 // shape4.SeriesColor = var.GetPaletteBasic[3]; shape4.RecalcOptions = RecalcOptions.OnModify; shape4.Title = "Cube"; shape4.DefaultNullValue = 0; shape4.Style = ShapeStyles.Cube; shape4.Color = var.GetPaletteBasic[3]; shape4.SeriesColor = var.GetPaletteBasic[3]; shape4.Visible = true; for (int i = 0; i < var.GetValorShape4X.Length; i++) { shape4.Add(var.GetValorShape4X[i], var.GetValorShape4Y[i]); } shape4.Chart.Zoom.Allow = false; shape4.Chart.Panning.Allow = ScrollModes.None; shape4.VertAxis = VerticalAxis.Both; shape4.HorizAxis = HorizontalAxis.Both; // // MARKS // Themes.AplicarMarksTheme1(BaseChart); }
// Constructor del "LineChart" public LineChart(ChartView BaseChart) { // Variables line1 = new Line(); line2 = new Line(); var = new Variables.Variables(); this.BaseChart = BaseChart; tool_dataPointSelect = new DataPointSelection(BaseChart); // Modificación del "Chart" base BaseChart.Chart.ClickSeries += null; BaseChart.Chart.BeforeDraw += Chart_BeforeDraw; BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Header.Text = "Deaths and Births in Spain"; BaseChart.Chart.Series.Add(line1); BaseChart.Chart.Series.Add(line2); line1.Add(var.GetValorLineX, var.GetValorLine1, true); line2.Add(var.GetValorLineX, var.GetValorLine2, true); // Propiedades de la "line1" line1.LinePen.Width = 6; line1.LinePen.Color = var.GetPaletteBasic[0]; line1.Pointer.Color = var.GetPaletteBasic[0]; line1.Pointer.InflateMargins = true; line1.Pointer.Visible = true; line1.Pointer.HorizSize = 11; line1.Pointer.VertSize = 11; line1.Pointer.Pen.EndCap = PenLineCap.Round; line1.Pointer.Pen.Color = Color.White; line1.Pointer.Pen.Width = 5; line1.Pointer.Style = PointerStyles.Sphere; line1.SeriesColor = var.GetPaletteBasic[0]; line1.Chart.Zoom.Allow = false; line1.Chart.Panning.Allow = ScrollModes.None; line1.LineHeight = 25; line1.ClickableLine = true; line1.ClickPointer += tool_dataPointSelect.PointValue_Click; line1.GetSeriesMark += tool_dataPointSelect.Serie_GetSeriesMark; line1.ClickTolerance = 30; line1.RecalcOptions = RecalcOptions.OnModify; line1.Title = "Births"; line1.DefaultNullValue = 0; line1.VertAxis = VerticalAxis.Both; line1.HorizAxis = HorizontalAxis.Both; // Propiedades de la "line2" line2.LinePen = new ChartPen { Width = 6, Color = var.GetPaletteBasic[1], }; line2.Pointer = new SeriesPointer(BaseChart.Chart, line2) { Color = var.GetPaletteBasic[1], InflateMargins = true, HorizSize = 11, VertSize = 11, Pen = new ChartPen { EndCap = PenLineCap.Round, Color = Xamarin.Forms.Color.White, Width = 5 }, Style = PointerStyles.Sphere }; line2.SeriesColor = var.GetPaletteBasic[1]; line2.Chart.Zoom.Allow = false; line2.Chart.Panning.Allow = ScrollModes.None; line2.LineHeight = 25; line2.ClickableLine = true; line2.ClickPointer += tool_dataPointSelect.PointValue_Click; line2.GetSeriesMark += tool_dataPointSelect.Serie_GetSeriesMark; line2.ClickTolerance = 30; line2.RecalcOptions = RecalcOptions.OnModify; line2.Title = "Deaths"; line2.VertAxis = VerticalAxis.Both; line2.HorizAxis = HorizontalAxis.Both; // Características de los ejes del "Chart" base BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue - 10, BaseChart.Chart.Axes.Left.MaxYValue + 10); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0K"; BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Increment = 1; BaseChart.Chart.Axes.Left.Increment = 10; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.Title = null; BaseChart.Chart.Axes.Bottom.Title = null; BaseChart.Chart.Axes.Left.AxisPen.Visible = false; BaseChart.Chart.Axes.Left.Ticks.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = true; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Series; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Panel.MarginLeft = 5; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 18; BaseChart.Chart.Series[1].Marks.Font.Size = 18; }
public BubbleTransparencyChartFeatures(ChartView BaseChart) { bubble1 = new Bubble(); this.BaseChart = BaseChart; var = new Variables.Variables(); tool_dataPointSelect = new DataPointSelection(BaseChart); BaseChart.Chart.Header.Text = "Market share study"; BaseChart.Chart.Series.Add(bubble1); BaseChart.Chart.Legend.Visible = false; bubble1.SeriesColor = var.GetPaletteBasic[0]; bubble1.Chart.Zoom.Allow = false; bubble1.Chart.Panning.Allow = ScrollModes.None; bubble1.RecalcOptions = RecalcOptions.OnModify; bubble1.DefaultNullValue = 0; bubble1.ClickPointer += tool_dataPointSelect.PointValue_Click; bubble1.GetSeriesMark += tool_dataPointSelect.Serie_GetSeriesMark; for (int i = 0; i < var.GetValorBubbleTrans1.Length; i++) { bubble1.Add(var.GetValorBubbleTransX[i], var.GetValorBubbleTrans1[i], var.GetValorBubbleTrans1[i] / 4, var.GetPaletteBasic[i]); } bubble1.Pointer.Brush.Color = Color.FromArgb(255, 255, 0, 0); bubble1.Pointer.InflateMargins = false; bubble1.Pointer.Style = PointerStyles.Circle; bubble1.Title = "bubble1"; bubble1.Transparency = 50; bubble1.VertAxis = VerticalAxis.Both; bubble1.HorizAxis = HorizontalAxis.Both; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue - 5, BaseChart.Chart.Axes.Left.MaxYValue + 5); BaseChart.Chart.Axes.Bottom.SetMinMax(0, BaseChart.Chart.Axes.Bottom.MaxXValue + 3); BaseChart.Chart.Axes.Bottom.Increment = 5; BaseChart.Chart.Axes.Left.Increment = 15; BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Left.Title.AutoSize = true; BaseChart.Chart.Axes.Left.Title.Font.Size = 14; BaseChart.Chart.Axes.Bottom.Title.Font.Size = 14; BaseChart.Chart.Axes.Left.Title.Alignment = Xamarin.Forms.TextAlignment.Center; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Ticks = new Axis.TicksPen { Width = 2, Visible = true, Color = Color.FromArgb(200, 200, 200), EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10, }; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Left.Title.Angle = 90; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Bottom.Title.Text = "Number of products"; BaseChart.Chart.Axes.Left.Title.Text = "Sales"; BaseChart.Chart.ClickSeries -= Chart_ClickSeries; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); bubble1.Marks.ArrowLength = (int)bubble1.Pointer.VertSize; bubble1.Marks.TextAlign = Xamarin.Forms.TextAlignment.Center; bubble1.Marks.Font.Color = Color.Black; bubble1.Marks.Font.Size = 19; bubble1.Marks.Frame.Width = 85; bubble1.Marks.Width = 85; bubble1.Marks.Frame.Visible = true; bubble1.Marks.Transparent = false; bubble1.Marks.Frame.Transparency = 0; bubble1.Marks.BackColor = Color.White; bubble1.Marks.Pen.Visible = true; bubble1.Marks.Pen.Width = 2; bubble1.Marks.Pen.Color = Color.Black; BaseChart.Chart.Axes.Left.Labels.CustomSize = 0; BaseChart.Chart.Panel.MarginLeft = 4; }
public BarStylesChartFeatures(ChartView BaseChart) { bar1 = new Bar(); var = new Variables.Variables(); this.BaseChart = BaseChart; BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Header.Text = "Product sale"; BaseChart.Chart.Series.Add(bar1); bar1.Colors = new ColorList { var.GetPaletteBasic[0] }; bar1.SeriesColor = var.GetPaletteBasic[0]; bar1.Chart.Zoom.Allow = false; bar1.Chart.Panning.Allow = ScrollModes.None; bar1.RecalcOptions = RecalcOptions.OnModify; bar1.Title = "ConeBar1"; bar1.DefaultNullValue = 0; for (int i = 0; i < var.GetValorConeBar1.Length; i++) { bar1.Add(var.GetValorConeBar1[i], var.GetValorConeBarX[i]); } bar1.MarksOnBar = false; bar1.Marks.Style = MarksStyles.Value; bar1.BarWidthPercent = 90; bar1.BarStyle = BarStyles.Arrow; bar1.VertAxis = VerticalAxis.Both; bar1.HorizAxis = HorizontalAxis.Both; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Ticks.Visible = false; BaseChart.Chart.Axes.Left.Title = null; BaseChart.Chart.Axes.Bottom.Title = null; BaseChart.Chart.Axes.Left.Ticks.Visible = false; BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Left.Increment = 2; BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Series; BaseChart.Chart.ClickSeries += Chart_ClickSeries; BaseChart.Chart.Axes.Left.Labels.CustomSize = 0; BaseChart.Chart.Axes.Bottom.LabelsOnAxis = true; BaseChart.Chart.Footer.Visible = true; BaseChart.Chart.Footer.Font.Size = 18; BaseChart.Chart.Footer.Font.Color = Color.FromArgb(110, 110, 110); BaseChart.Chart.Footer.Height = 110; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 14; bar1.Marks.Pen.Visible = false; BaseChart.Chart.Series[0].Marks.TextAlign = Xamarin.Forms.TextAlignment.Center; BaseChart.Chart.Series[0].Marks.AutoSize = true; BaseChart.Chart.Series[0].Marks.Color = Color.Transparent; BaseChart.Chart.Panel.MarginLeft = 5; BaseChart.Chart.Axes.Left.Visible = false; }
public PieChart(ChartView BaseChart) { pie1 = new Pie(); var = new Variables.Variables(); this.BaseChart = BaseChart; tool_dataPointSelect = new DataPointSelection(BaseChart); BaseChart.Chart.Header.Text = "Percentage of animals in the zoo (%)"; BaseChart.Chart.Series.Add(pie1); BaseChart.Chart.Legend.Visible = true; pie1.SeriesColor = var.GetPaletteBasic[0]; pie1.Chart.Zoom.Allow = false; pie1.Chart.Panning.Allow = ScrollModes.None; pie1.AutoCircleResize = true; pie1.RecalcOptions = RecalcOptions.OnModify; pie1.DefaultNullValue = 0; pie1.Circled = true; pie1.AutoPenColor = false; pie1.DarkPen = false; pie1.Pen.Width = 3; pie1.Pen.Style = DashStyle.Solid; pie1.Pen.Visible = true; pie1.Pen.Color = Color.White; pie1.VertAxis = VerticalAxis.Both; pie1.HorizAxis = HorizontalAxis.Both; pie1.CustomXRadius = BaseChart.Chart.Axes.Bottom.MaxXValue; for (int i = 0; i < var.GetValorPie1.Length; i++) { pie1.Add(var.GetValorPie1[i], var.GetPaletteBasic[i]); } pie1.Title = "pieAnimals"; pie1.RotationAngle = 20; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinYValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Bottom.Increment = 5; BaseChart.Chart.Axes.Left.Increment = 5; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Ticks = new Axis.TicksPen { Width = 2, Visible = true, Color = Color.FromRgb(200, 200, 200), EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10, }; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Left.Title.Angle = 90; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Values; BaseChart.Chart.Legend.Alignment = LegendAlignments.Bottom; BaseChart.Chart.Legend.AutoSize = true; BaseChart.Chart.Legend.ResizeChart = true; BaseChart.Chart.Legend.TextAlign = TextAlignment.Center; BaseChart.Chart.Legend.Font.Size = 13; BaseChart.Chart.Legend.Symbol.Position = LegendSymbolPosition.Right; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); pie1.Marks.Pen.Visible = false; pie1.Marks.FollowSeriesColor = false; pie1.Marks.Style = MarksStyles.Percent; pie1.AutoCircleResize = false; pie1.Marks.Brush.Transparency = 100; pie1.MarksPie.VertCenter = true; pie1.Marks.Transparent = true; pie1.Marks.Frame.Transparency = 100; BaseChart.Chart.Series[0].Marks.Font.Size = 18; pie1.MarksPie.InsideSlice = true; BaseChart.Chart.Panel.MarginLeft = 5; pie1.MarksPie.LegSize = 20; pie1.MarksPie.VertCenter = true; BaseChart.Chart.ClickSeries += tool_dataPointSelect.PieChart_ClickSeries; }
public HorizontalBarChart(ChartView BaseChart) { bar1 = new HorizBar(); var = new Variables.Variables(); this.BaseChart = BaseChart; BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Header.Text = "Number of Museum Visitors (2008-2011)"; BaseChart.Chart.Series.Add(bar1); //BaseChart.Chart.Series.Add(bar2); bar1.Colors = new ColorList { var.GetPaletteBasic[0] }; bar1.SeriesColor = var.GetPaletteBasic[0]; bar1.Chart.Zoom.Allow = false; bar1.Chart.Panning.Allow = ScrollModes.None; bar1.RecalcOptions = RecalcOptions.OnModify; bar1.Title = "National Gallery"; bar1.DefaultNullValue = 0; for (int i = 0; i < var.GetValorHorizBar1.Length; i++) { bar1.Add(var.GetValorHorizBar1[i], var.GetValorHorizBarX[i]); } bar1.MarksOnBar = true; bar1.Marks.Style = MarksStyles.Value; bar1.VertAxis = VerticalAxis.Both; bar1.HorizAxis = HorizontalAxis.Both; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue, BaseChart.Chart.Axes.Left.MaxYValue); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue, BaseChart.Chart.Axes.Bottom.MaxXValue); BaseChart.Chart.Axes.Left.Title.Visible = false; BaseChart.Chart.Axes.Bottom.Title.Text = "Annual Visitors (M)"; BaseChart.Chart.Axes.Left.Visible = false; BaseChart.Chart.Axes.Bottom.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Left.Labels.ValueFormat = "0"; BaseChart.Chart.Axes.Bottom.Increment = 1; BaseChart.Chart.Axes.Left.Increment = 1; BaseChart.Chart.Axes.Bottom.Grid.Visible = true; BaseChart.Chart.Legend.Visible = true; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Series; BaseChart.Chart.ClickSeries += null; BaseChart.Chart.Axes.Left.Ticks = new Axis.TicksPen { Width = 2, Visible = true, Color = Color.White, EndCap = PenLineCap.Flat, Style = DashStyle.Solid, Length = 10, }; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Left.Labels.Visible = true; BaseChart.Chart.Axes.Bottom.Title.Visible = true; BaseChart.Chart.Axes.Left.Labels.Angle = 0; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Grid.Visible = false; BaseChart.Chart.Axes.Bottom.Grid.Visible = false; BaseChart.Chart.Panel.MarginLeft = 5; // Themes Marks Themes.AplicarMarksTheme1(BaseChart); BaseChart.Chart.Series[0].Marks.Font.Size = 14; bar1.Marks.Pen.Visible = false; BaseChart.Chart.Series[0].Marks.TextAlign = TextAlignment.Center; BaseChart.Chart.Series[0].Marks.AutoSize = true; BaseChart.Chart.Series[0].Marks.Color = Color.Transparent; BaseChart.Chart.ClickSeries += null; }