public WorldMapChart(ChartView BaseChart) { this.BaseChart = BaseChart; this.world = new World(); var = new Variables.Variables(); world.UseColorRange = false; world.StartColor = var.GetPaletteBasic[0].AddLuminosity(0.14); world.MidColor = var.GetPaletteBasic[0].AddLuminosity(-0.05); world.EndColor = var.GetPaletteBasic[0].AddLuminosity(-0.26); world.UseColorRange = true; world.Shadow.Visible = false; world.FillSampleValues(); world.Map = WorldMapType.Europe27; BaseChart.Chart.Series.Add(world); BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Left.Visible = false; BaseChart.Chart.Axes.Bottom.Visible = false; BaseChart.Chart.Legend.Visible = false; AddChangeMapToolbarItem(); }
public StdDeviationProFunctionChart(ChartView BaseChart) { line1 = new Line(); line2 = new Line(); stdDeviation = new StdDeviation(); var = new Variables.Variables(); BaseChart.Chart.Title.Text = "Standard Deviation"; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Bottom.Automatic = true; line1.FillSampleValues(30); line1.Title = "Data Source"; line1.LinePen.Width = 3; line1.Color = var.GetPaletteBasic[0]; line2.DataSource = line1; line2.Function = stdDeviation; line2.Title = "Deviation"; line2.LinePen.Width = 3; line2.Color = var.GetPaletteBasic[1]; stdDeviation.Complete = false; BaseChart.Chart.Series.Add(line1); BaseChart.Chart.Series.Add(line2); }
public TrendlineProFunctionChart(ChartView BaseChart) { area = new Area(); line = new Line(); trendFunction = new TrendFunction(); var = new Variables.Variables(); BaseChart.Chart.Title.Text = "Trendline"; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.Increment = 40; BaseChart.Chart.Series.Add(area); area.FillSampleValues(15); area.Color = var.GetPaletteBasic[0]; area.AreaLines.Color = var.GetPaletteBasic[0]; area.LinePen.Color = var.GetPaletteBasic[0].AddLuminosity(-0.2); area.Title = "Data Source"; BaseChart.Chart.Series.Add(line); line.DataSource = area; line.Function = trendFunction; line.Title = "Trendline"; line.LinePen.Width = 3; line.Color = var.GetPaletteBasic[1]; trendFunction.TrendStyle = TrendStyles.Normal; }
public ExpMovAverageProFunctionChart(ChartView BaseChart) { candle = new Candle(); line = new Line(); expMovAverage = new ExpMovAverage(); var = new Variables.Variables(); Themes.CandleGodStyle(candle); BaseChart.Chart.Title.Text = "Exponential Moving Average"; BaseChart.Chart.Series.Add(candle); BaseChart.Chart.Series.Add(line); FillSampleValues(candle, 15); candle.Title = "Data Source"; candle.YValues.DataMember = "Close"; line.Color = var.GetPaletteBasic[2]; line.DataSource = candle; line.Function = expMovAverage; line.Pointer.Visible = true; line.Pointer.Color = var.GetPaletteBasic[2]; line.Title = "Exp. Mov. Average"; line.LinePen.Width = 3; expMovAverage.Period = 14; BaseChart.Chart.Axes.Left.Increment = 20; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; }
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 MapGISChart(ChartView BaseChart) { mapGSI = new Map(); this.BaseChart = BaseChart; var = new Variables.Variables(); BaseChart.Chart.Series.Add(mapGSI); mapGSI.FillSampleValues(10); mapGSI.VertAxis = VerticalAxis.Both; mapGSI.HorizAxis = HorizontalAxis.Both; mapGSI.Title = "Map GIS"; mapGSI.UsePalette = false; mapGSI.StartColor = var.GetPaletteBasic[0].AddLuminosity(0.3); mapGSI.EndColor = var.GetPaletteBasic[0].AddLuminosity(-0.1); mapGSI.Marks.AutoSize = true; mapGSI.MapMarks.AutoSize = false; mapGSI.MapMarks.UpperCase = true; mapGSI.MapMarks.Centroid = true; mapGSI.Marks.Font.Size += 8; mapGSI.Marks.Font.Bold = true; mapGSI.Marks.TailStyle = MarksTail.None; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue - 2, BaseChart.Chart.Axes.Left.MaxYValue + 2); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue - 1, BaseChart.Chart.Axes.Bottom.MaxXValue + 1); BaseChart.Chart.Axes.Left.Transparency = 0; BaseChart.Chart.Axes.Bottom.Transparency = 0; BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Axes.Left.MinorTicks.Transparency = 100; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Title.Text = ""; ExisteMapToolbarItem(); }
public PVOProFunctionChart(ChartView BaseChart) { volume = new Volume(); fastLine = new FastLine(); pvoFunction = new PVOFunction(); var = new Variables.Variables(); BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Increment = 10; volume.FillSampleValues(15); volume.Color = var.GetPaletteBasic[0]; volume.LinePen.Width = 3; volume.Title = "Volume"; fastLine.Color = var.GetPaletteBasic[1]; fastLine.DataSource = volume; fastLine.Function = pvoFunction; fastLine.LinePen.Width = 3; fastLine.Title = "FastLine"; pvoFunction.Period = 12; BaseChart.Chart.Series.Add(volume); BaseChart.Chart.Series.Add(fastLine); }
public CompressionOHLCProFunctionChart(ChartView BaseChart) { candle = new Candle(); candleSource = new Candle(); compressOHLC = new CompressOHLC(); var = new Variables.Variables(); this.BaseChart = BaseChart; Themes.CandleGodStyle(candle); BaseChart.Chart.Series.Add(candle); candleSource.FillSampleValues(15); candle.Function = compressOHLC; candle.DataSource = candleSource; compressOHLC.Period = 2; compressOHLC.Compress = CompressionPeriod.ocMonth; compressOHLC.Series = candleSource; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Axes.Left.Increment = 15; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; ((((BaseChart.Parent as StackLayout).Parent as Grid).Parent as ContentPage).Parent as TabbedPage).Title = "Compression"; AddCompressionToolbarItem(); BaseChart.Chart.Header.Text = "Compression OHLC - " + compressionPicker.SelectedItem; }
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 FunnelChart(ChartView BaseChart) { funnel = new Funnel(); var = new Variables.Variables(); for (int i = 0; i < var.GetValorFunnelLabels.Length; i++) { funnel.Add(var.GetValorsFunnel[i, 0], var.GetValorsFunnel[i, 1], var.GetValorFunnelLabels[i], var.GetPaletteBasic[0]); } funnel.Marks.Visible = true; funnel.Marks.TailStyle = MarksTail.None; funnel.Marks.Color = Xamarin.Forms.Color.White; funnel.Marks.Font.Color = Xamarin.Forms.Color.Black; funnel.Marks.Font.Size = 14; funnel.AboveColor = var.GetPaletteBasic[2]; funnel.WithinColor = var.GetPaletteBasic[1]; funnel.BelowColor = var.GetPaletteBasic[0]; funnel.DifferenceLimit = 50; BaseChart.Chart.Series.Add(funnel); 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.Visible = false; BaseChart.Chart.Axes.Bottom.Visible = false; BaseChart.Chart.Title.Text = "Market quota"; BaseChart.Chart.Legend.LegendStyle = LegendStyles.Values; BaseChart.Chart.Legend.TextAlign = TextAlignment.Start; BaseChart.Chart.Legend.TextStyle = LegendTextStyles.Plain; }
public AvgStdFunctionsChart(ChartView BaseChart) { avgFunction = new Steema.TeeChart.Functions.Average(); bar1 = new Bar(); theAvgLine = new Line(); var = new Variables.Variables(); for (int i = 0; i < var.GetValorStdAvg1.Length; i++) { bar1.Add(i, var.GetValorStdAvg1[i]); } BaseChart.Chart.Series.Add(bar1); BaseChart.Chart.Series.Add(theAvgLine); theAvgLine.Function = avgFunction; theAvgLine.DataSource = new object[] { bar1 }; bar1.SeriesColor = var.GetPaletteBasic[0]; theAvgLine.SeriesColor = var.GetPaletteBasic[2]; bar1.Title = "Data"; bar1.MarksOnBar = true; bar1.MarksLocation = MarksLocation.Start; theAvgLine.Title = "Average"; theAvgLine.LinePen.Width = 6; theAvgLine.Pointer.Style = PointerStyles.Sphere; theAvgLine.Pointer.InflateMargins = true; theAvgLine.Pointer.HorizSize = 5; theAvgLine.Pointer.VertSize = 5; theAvgLine.Pointer.Visible = true; theAvgLine.Marks.Visible = true; theAvgLine.Marks.DrawEvery = 2; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue + 1.6, 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 = 20; 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; theAvgLine.Marks.AutoSize = true; theAvgLine.Marks.FollowSeriesColor = true; theAvgLine.Marks.Pen.Width = 1; theAvgLine.Marks.Pen.Color = theAvgLine.Color.AddLuminosity(-0.3); theAvgLine.Marks.Font.Size = 13; bar1.Marks.Font.Size = 14; bar1.Marks.Pen.Visible = false; bar1.Marks.TailStyle = MarksTail.None; bar1.Marks.TextAlign = TextAlignment.Center; bar1.Marks.AutoSize = true; bar1.Marks.BackColor = Color.Transparent; bar1.Marks.Font.Color = Color.White; bar1.Marks.TailStyle = MarksTail.None; BaseChart.Chart.Panel.MarginLeft = 5; }
public WaterfallChart(ChartView BaseChart) { waterfall = new Waterfall(); var = new Variables.Variables(); waterfall.FillSampleValues(); waterfall.StartColor = var.GetPaletteBasic[0].AddLuminosity(0.3); waterfall.MidColor = var.GetPaletteBasic[0]; waterfall.EndColor = var.GetPaletteBasic[0].AddLuminosity(-0.3); BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Panel.MarginLeft = 3; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Increment = 1; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.Grid.Visible = true; BaseChart.Chart.Title.Text = "Waterfall series"; BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Series.Add(waterfall); }
public PerformanceProFunctionChart(ChartView BaseChart) { bar = new Bar(); line = new Line(); performance = new Performance(); var = new Variables.Variables(); BaseChart.Chart.Title.Text = "Performance"; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Bottom.Automatic = true; FillSampleValues(bar, 7, 400); bar.Color = var.GetPaletteBasic[0]; bar.Pen.Color = var.GetPaletteBasic[0].AddLuminosity(-0.15); bar.Marks.Visible = true; bar.Marks.FollowSeriesColor = true; bar.Marks.Font.Size += 5; bar.Marks.TailStyle = MarksTail.None; bar.Title = "Data Source"; line.DataSource = bar; line.Function = performance; line.Color = var.GetPaletteBasic[1]; line.LinePen.Width = 3; line.Title = "Performance"; performance.Period = 1; BaseChart.Chart.Series.Add(bar); BaseChart.Chart.Series.Add(line); }
public RMSProFunctionChart(ChartView BaseChart) { line1 = new Line(); line2 = new Line(); rootMeanSquare = new RootMeanSquare(); var = new Variables.Variables(); BaseChart.Chart.Title.Text = "Root Mean Square"; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.Increment = 100; line1.FillSampleValues(30); line1.Title = "Data Source"; line1.LinePen.Width = 3; line1.Color = var.GetPaletteBasic[0]; line2.DataSource = line1; line2.Function = rootMeanSquare; line2.Title = "RMS"; line2.LinePen.Width = 3; line2.Color = var.GetPaletteBasic[1]; rootMeanSquare.Complete = true; BaseChart.Chart.Series.Add(line1); BaseChart.Chart.Series.Add(line2); }
public DataHistogramProFunctionChart(ChartView BaseChart) { line = new Line(); histogram = new Histogram(); histogramFunction = new HistogramFunction(); var = new Variables.Variables(); }
public SmithChart(ChartView BaseChart) { smith = new Smith(); var = new Variables.Variables(); smith.GetHorizAxis = BaseChart.Chart.Axes.Bottom; smith.GetVertAxis = BaseChart.Chart.Axes.Left; BaseChart.Chart.Title.Text = "Smith series"; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Left.Labels.Visible = true; BaseChart.Chart.Axes.Bottom.Labels.Visible = true; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.Increment = 0.5; BaseChart.Chart.Axes.Left.Grid.Visible = true; smith.GetHorizAxis = BaseChart.Chart.Axes.Bottom; smith.GetVertAxis = BaseChart.Chart.Axes.Left; smith.FillSampleValues(); smith.Circled = true; smith.Pointer.Visible = true; smith.Pointer.Color = var.GetPaletteBasic[0]; smith.Color = var.GetPaletteBasic[0]; smith.RLabels = true; smith.CLabels = true; smith.CLabelsFont.Size = 11; smith.RLabelsFont.Size = 11; BaseChart.Chart.Series.Add(smith); }
public FittingProFunctionChart(ChartView BaseChart) { points = new Points(); line = new Line(); fittingFunction = new PolyFitting(); var = new Variables.Variables(); BaseChart.Chart.Title.Text = "Fitting Linearizable Model"; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.Increment = 30; FillSampleValues(points, 10, 500, 0); points.Color = var.GetPaletteBasic[0]; points.Pointer.HorizSize += 3; points.Pointer.VertSize += 3; points.Pointer.Style = PointerStyles.Rectangle; points.Pointer.Pen.Color = var.GetPaletteBasic[0].AddLuminosity(-0.25); points.Title = "Data Source"; line.DataSource = points; line.Function = fittingFunction; line.Color = var.GetPaletteBasic[1]; line.LinePen.Width = 3; line.Title = "Fitted"; BaseChart.Chart.Series.Add(points); BaseChart.Chart.Series.Add(line); }
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 PolarBarChart(ChartView BaseChart) { #if !TEE_STD polarBar = new PolarBar(); var = new Variables.Variables(); polarBar.FillSampleValues(30); polarBar.Color = var.GetPaletteBasic[0]; polarBar.Marks.Visible = false; polarBar.Circled = true; polarBar.CloseCircle = true; polarBar.Pen.Width = 5; polarBar.Pointer.Visible = false; polarBar.CircleLabelsInside = false; polarBar.CircleLabels = true; Themes.AplicarTheme(BaseChart); BaseChart.Chart.Title.Text = "Polar Bar series"; BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Axes.Left.MinorTicks.Transparency = 100; BaseChart.Chart.Axes.Left.Visible = false; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Grid.Visible = true; BaseChart.Chart.Axes.Left.Labels.Visible = true; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Increment = 10; BaseChart.Chart.Axes.Bottom.Increment = 10; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Series.Add(polarBar); #endif }
public SPCProFunctionChart(ChartView BaseChart) { lineGood = new Line(); lineBad = new Line(); var = new Variables.Variables(); this.BaseChart = BaseChart; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.AxisPen.Transparency = 100; BaseChart.Chart.Axes.Left.MinorTicks.Transparency = 100; BaseChart.Chart.Axes.Left.Ticks.Visible = false; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Title.Text = "Quality Control"; BaseChart.Chart.AfterDraw += Chart_AfterDraw; lineBad.Title = "Line 1"; lineBad.Marks.Visible = true; lineGood.Title = "Line 2"; lineGood.Marks.Visible = true; Function_SPC(); BaseChart.Chart.Series.Add(lineBad); BaseChart.Chart.Series.Add(lineGood); ImplementiOSMarks(BaseChart.Chart); }
public MomentumProFunctionChart(ChartView BaseChart) { line1 = new Line(); line2 = new Line(); momentum = new Momentum(); var = new Variables.Variables(); BaseChart.Chart.Title.Text = "Momentum"; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; FillSampleValues(line1, 30, 600); line1.Color = var.GetPaletteBasic[0]; line1.LinePen.Width = 3; line1.Pointer.Visible = true; line1.Title = "Data Source"; line2.LinePen.Width = 3; line2.DataSource = line1; line2.Function = momentum; line2.Title = "Momentum"; line2.Color = var.GetPaletteBasic[1]; momentum.Period = 10; BaseChart.Chart.Series.Add(line1); BaseChart.Chart.Series.Add(line2); }
public SARProFunctionChart(ChartView BaseChart) { candle = new Candle(); line = new Line(); sarFunction = new SARFunction(); var = new Variables.Variables(); Themes.CandleGodStyle(candle); BaseChart.Chart.Title.Text = "Stop-And-Reversal"; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Bottom.Automatic = true; FillSampleValues(candle, 10); candle.Title = "Data Source"; line.DataSource = candle; line.Function = sarFunction; line.Title = "SAR"; line.Color = var.GetPaletteBasic[2]; line.LinePen.Width = 3; line.Pointer.Visible = true; line.Marks.Visible = true; sarFunction.AccelerationFactor = 0.019999999552965164; sarFunction.MaxStep = 0.30000001192092896; BaseChart.Chart.Series.Add(candle); BaseChart.Chart.Series.Add(line); line.Marks.Font.Size = 12; line.Marks.TailStyle = MarksTail.None; line.Marks.FollowSeriesColor = true; }
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); }
private void injectFitNesseSymbolMap() { Variables.Variables variables = variablesProvider.CreateRunnerVariables(); VariablesJavaScriptWrapper wrappedVariables = new VariablesJavaScriptWrapper(_engine, variables); _engine.SetGlobalValue(SYMBOLS_OBJ_NAME, wrappedVariables); }
public CandleChart(ChartView BaseChart) { candle = new Candle(); var = new Variables.Variables(); //candle.Style = CandleStyles.CandleStick; //candle.CandleWidth = 8; BaseChart.Chart.Series.Add(candle); BaseChart.Chart.Title.Text = "Stock exchange about two companies"; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; for (int i = 0; i < var.GetValorCandleTime.Length; i++) { candle.Add(var.GetValorCandleTime[i], var.GetValorsCandle[i, 0], var.GetValorsCandle[i, 1], var.GetValorsCandle[i, 2], var.GetValorsCandle[i, 3]); } candle.Color = var.GetPaletteBasic[0]; candle.Style = CandleStyles.CandleStick; candle.CandleWidth = 40; candle.HighLowPen.Width = 3; candle.Pen.Width = 3; candle.UpCloseColor = var.GetPaletteBasic[0]; candle.DownCloseColor = var.GetPaletteBasic[1]; BaseChart.Chart.Axes.Left.Visible = true; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Axes.Visible = true; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue - 5, BaseChart.Chart.Axes.Left.MaxYValue + 5); BaseChart.Chart.Axes.Bottom.SetMinMax(BaseChart.Chart.Axes.Bottom.MinXValue - 0.5, BaseChart.Chart.Axes.Bottom.MaxXValue + 0.5); BaseChart.Chart.Panel.MarginRight = 5; BaseChart.Chart.Axes.Bottom.Increment = 1; BaseChart.Chart.Axes.Bottom.Grid.Visible = true; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.Ticks.Visible = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Left.MinorTicks.Visible = false; BaseChart.Chart.Axes.Left.Increment = 10; BaseChart.Chart.Axes.Left.Grid.Visible = true; BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Axes.Left.Title.Visible = true; BaseChart.Chart.Axes.Left.Title.Text = "Money ($)"; BaseChart.Chart.Axes.Bottom.Title.Visible = true; BaseChart.Chart.Axes.Bottom.Title.Text = "Date"; BaseChart.Chart.Axes.Left.Title.Font.Size = 15; BaseChart.Chart.Axes.Left.Title.Angle = 90; BaseChart.Chart.Axes.Bottom.Title.Font.Size = 15; BaseChart.Chart.Axes.Bottom.Labels.DateTimeFormat = "dd/MM"; candle.GetPointerStyle += Candle_GetPointerStyle; }
public BasicCircularGaugeChart(ChartView BaseChart) { circularGauge = new CircularGauge(); var = new Variables.Variables(); BaseChart.Chart.Series.Add(circularGauge); BaseChart.Chart.Title.Visible = false; //circularGauge.GaugeColorPalette = var.GetPaletteBasic; circularGauge.MinorTicks.Visible = false; circularGauge.Title = "Basic Circular Gauge"; circularGauge.Ticks.Visible = false; circularGauge.HandDistance = 70; circularGauge.HandOffset = 0; circularGauge.Hand.HorizSize = 6; circularGauge.Hand.Color = var.GetPaletteBasic[0]; circularGauge.Hand.Draw3D = false; circularGauge.Hand.Pen.Visible = false; circularGauge.Hand.Gradient.Visible = false; circularGauge.Hand.Shadow.Visible = false; circularGauge.Center.Color = var.GetPaletteBasic[0]; circularGauge.Center.Gradient.Visible = false; circularGauge.Center.HorizSize = 15; circularGauge.Center.VertSize = 15; circularGauge.Center.Draw3D = false; circularGauge.Center.Pen.Visible = false; circularGauge.Center.Shadow.Visible = false; circularGauge.FaceBrush.Color = Color.White; circularGauge.FaceBrush.Visible = true; circularGauge.FaceBrush.Solid = true; circularGauge.FaceBrush.Gradient.Visible = false; circularGauge.FaceBrush.ForegroundColor = Color.White; circularGauge.RotateLabels = false; circularGauge.RedLine.Visible = false; circularGauge.GreenLine.Visible = false; circularGauge.Frame.TotalAngle = 290; circularGauge.Frame.Visible = true; circularGauge.Frame.FrameElementPercents = new double[3] { 0, 100, 0 }; circularGauge.Frame.MiddleBand.Color = Color.FromArgb(190, 190, 190); circularGauge.Frame.OuterBand.Visible = false; circularGauge.Frame.InnerBand.Visible = false; circularGauge.Frame.MiddleBand.Solid = true; circularGauge.Frame.MiddleBand.Gradient.Visible = false; circularGauge.Frame.RotationAngle = 305; circularGauge.Frame.Circled = true; circularGauge.Frame.Width = 2; circularGauge.CircleBackColor = Color.White; circularGauge.Color = Color.White; circularGauge.Axis.Labels.Font.Color = Color.Black; circularGauge.Value = 65; circularGauge.Maximum = 100; circularGauge.Axis.Increment = 10; }
public CumulativeHistogProFunctionChart(ChartView BaseChart) { dataLine = new Line(); histogram = new Histogram(); histogramFunction = new HistogramFunction(); var = new Variables.Variables(); this.BaseChart = BaseChart; Themes.AplicarTheme(BaseChart); BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.MinorTicks.Transparency = 100; BaseChart.Chart.Axes.Left.AxisPen.Visible = true; BaseChart.Chart.Axes.Left.AxisPen.Transparency = 0; BaseChart.Chart.Axes.Bottom.Visible = true; BaseChart.Chart.Title.Text = "Cumulative Histogram"; dataLine.FillSampleValues(120); dataLine.Color = var.GetPaletteBasic[1]; dataLine.LinePen.Width = 2; dataLine.HorizAxis = HorizontalAxis.Top; dataLine.VertAxis = VerticalAxis.Right; dataLine.Title = "Data Source"; dataLine.Marks.DrawEvery = 4; histogram.FillSampleValues(10); histogram.Title = "Histogram"; histogram.Color = var.GetPaletteBasic[0]; histogram.Function = histogramFunction; histogram.DataSource = dataLine; histogramFunction.Cumulative = true; histogramFunction.NumBins = 20; histogram.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); histogram.ColorEach = false; histogram.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); histogram.LinePen.Transparency = 100; histogram.LinesPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); histogram.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; histogram.Marks.Callout.ArrowHeadSize = 8; histogram.Marks.Callout.Brush.Color = System.Drawing.Color.Black; histogram.Marks.Callout.Distance = 0; histogram.Marks.Callout.Draw3D = false; histogram.Marks.Callout.Length = 10; histogram.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; histogram.XValues.DataMember = "X"; histogram.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; histogram.YValues.DataMember = "Y"; histogram.Marks.DrawEvery = 2; histogram.LinesPen.Transparency = 100; BaseChart.Chart.Series.Add(histogram); BaseChart.Chart.Series.Add(dataLine); }
public void init(ExternalMethods exMeth, Variables.Variables vars, Executor ex) { ExMeth = exMeth; Vars = vars; Ex = ex; //add the methods ExMeth.Add(Ls, "ls", new string[] { "String" }); ExMeth.Add(Cd, "cd", new string[] { "String" }); ExMeth.Add(Start, "start", new string[] { "String" }); }
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); }