private void ChartPalettes_Load(object sender, System.EventArgs e) { int t; bar1.FillSampleValues(15); bar1.ColorEach = true; cbCustom.SelectedIndex = 0; cbDefault.Items.Clear(); foreach (string s in Theme.ColorPalettes) { cbDefault.Items.Add(s); } RedPalette = new Color[15]; for (t = 0; t < 15; ++t) { RedPalette[t] = Color.FromArgb(128 + Convert.ToInt32(Math.Round(t * (128.0 / 15.0))), 0, 0); } BluePalette = new Color[15]; for (t = 0; t < 15; ++t) { BluePalette[t] = Color.FromArgb(0, 0, 128 + Convert.ToInt32(Math.Round(t * (128.0 / 15.0)))); } GreenPalette = new Color[15]; for (t = 0; t < 15; ++t) { GreenPalette[t] = Color.FromArgb(0, 128 + Convert.ToInt32(Math.Round(t * (128.0 / 15.0))), 0); } }
public TeeCommander_Demo() { // This call is required by the Windows Form Designer. InitializeComponent(); barSeries1.FillSampleValues(5); }
public Export_VML() { // This call is required by the Windows Form Designer. InitializeComponent(); bar1.FillSampleValues(5); }
public Function_Performance() { // This call is required by the Windows Form Designer. InitializeComponent(); bar1.FillSampleValues(); }
public Canvas_180Rotation() { // This call is required by the Windows Form Designer. InitializeComponent(); bar1.FillSampleValues(4); }
public MarksSymbols() { // This call is required by the Windows Form Designer. InitializeComponent(); bar1.FillSampleValues(); }
public Series_MouseEnter() { // This call is required by the Windows Form Designer. InitializeComponent(); barSeries1.FillSampleValues(6); line1.FillSampleValues(6); }
private void Marks_NewStyles_Load(object sender, EventArgs e) { bar1.FillSampleValues(6); ShowMark = -1; tChart1.MouseMove += new MouseEventHandler(tChart1_MouseMove); bar1.GetSeriesMark += new Steema.TeeChart.Styles.Series.GetSeriesMarkEventHandler(bar1_GetSeriesMark); }
public Function_Add() { // This call is required by the Windows Form Designer. InitializeComponent(); barSeries1.FillSampleValues(10); (add1.Series as Steema.TeeChart.Styles.Line).Pointer.Visible = true; }
public Axis_LabelsFormat() { // This call is required by the Windows Form Designer. InitializeComponent(); comboBox1.SelectedIndex = 0; bar1.FillSampleValues(5); }
public PreviewDialog() { // This call is required by the Windows Form Designer. InitializeComponent(); bar1.FillSampleValues(6); bar1.ColorEach = true; }
public Marks_Callout() { // This call is required by the Windows Form Designer. InitializeComponent(); bar1.FillSampleValues(); bar1.Marks.Callout.Style = Styles.PointerStyles.DownTriangle; comboBox1.SelectedIndex = 3; }
public Axis_Behind() { // This call is required by the Windows Form Designer. InitializeComponent(); bar1.FillSampleValues(6); //tChart1.Axes.Left.Grid.Color = Color.White; //tChart1.Axes.Bottom.Grid.Color = Color.Blue; }
public SeriesType_Bar() { // This call is required by the Windows Form Designer. InitializeComponent(); bar1.FillSampleValues(6); bar2.FillSampleValues(6); bar3.FillSampleValues(6); }
private void InitializeChart() { tChart1.Tools.Add(fader = new Steema.TeeChart.Tools.FaderTool()); tChart1.Series.Add(bar = new Steema.TeeChart.Styles.Bar()); bar.FillSampleValues(); fader.Color = tChart1.Panel.Gradient.EndColor; fader.Speed = 2; fader.FaderStop += new EventHandler(fader_FaderStop); }
public Legend_Multi() { // This call is required by the Windows Form Designer. InitializeComponent(); barSeries1.FillSampleValues(5); barSeries2.FillSampleValues(5); tChart1.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Values; tChart1.Legend.Series = barSeries1; }
public Canvas_Events() { // This call is required by the Windows Form Designer. InitializeComponent(); bar1.FillSampleValues(); BeforeChart = true; BeforeAxes = false; BeforeSeries = false; AfterDraw = false; }
public Export_JScript() { // This call is required by the Windows Form Designer. InitializeComponent(); tChart1.Aspect.View3D = false; tChart1.Header.Text = "TeeChart Javascript on HTML5 Cnvas"; Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart); bar1.FillSampleValues(); // TODO: Add any initialization after the InitializeComponent call }
public override void ViewDidLoad() { base.ViewDidLoad(); chartview = new TChart(); chartview.Frame = new RectangleF(0, 0, 320, 460); //產生不同類型的圖表 switch (chart) { case ChartType.Bar: var Barstyle = new Steema.TeeChart.Styles.Bar(); Barstyle.FillSampleValues(samples); Barstyle.ShowInLegend = false; Barstyle.Marks.Visible = true; chartview.Series.Add(Barstyle); break; case ChartType.Candle: var Candlestyle = new Steema.TeeChart.Styles.Candle(); Candlestyle.FillSampleValues(samples); Candlestyle.ShowInLegend = false; Candlestyle.Marks.Visible = true; chartview.Series.Add(Candlestyle); break; case ChartType.Bubble: var Bubblestyle = new Steema.TeeChart.Styles.Bubble(); Bubblestyle.FillSampleValues(samples); Bubblestyle.ShowInLegend = false; Bubblestyle.Marks.Visible = true; chartview.Series.Add(Bubblestyle); break; case ChartType.Radar: var Radarstyle = new Steema.TeeChart.Styles.Radar(); Radarstyle.FillSampleValues(samples); Radarstyle.ShowInLegend = false; Radarstyle.Marks.Visible = true; chartview.Series.Add(Radarstyle); break; case ChartType.Tower: var Towerstyle = new Steema.TeeChart.Styles.Tower(); Towerstyle.FillSampleValues(samples); Towerstyle.ShowInLegend = false; Towerstyle.Marks.Visible = true; chartview.Series.Add(Towerstyle); break; } View.AddSubview(chartview); }
public override void ViewDidLoad() { base.ViewDidLoad(); chartview = new TChart(); chartview.Frame = new RectangleF(0, 0, 320, 460); //���ͤ��P�������Ϫ� switch (chart) { case ChartType.Bar: var Barstyle = new Steema.TeeChart.Styles.Bar(); Barstyle.FillSampleValues(samples); Barstyle.ShowInLegend = false; Barstyle.Marks.Visible = true; chartview.Series.Add(Barstyle); break; case ChartType.Candle: var Candlestyle = new Steema.TeeChart.Styles.Candle(); Candlestyle.FillSampleValues(samples); Candlestyle.ShowInLegend = false; Candlestyle.Marks.Visible = true; chartview.Series.Add(Candlestyle); break; case ChartType.Bubble: var Bubblestyle = new Steema.TeeChart.Styles.Bubble(); Bubblestyle.FillSampleValues(samples); Bubblestyle.ShowInLegend = false; Bubblestyle.Marks.Visible = true; chartview.Series.Add(Bubblestyle); break; case ChartType.Radar: var Radarstyle = new Steema.TeeChart.Styles.Radar(); Radarstyle.FillSampleValues(samples); Radarstyle.ShowInLegend = false; Radarstyle.Marks.Visible = true; chartview.Series.Add(Radarstyle); break; case ChartType.Tower: var Towerstyle = new Steema.TeeChart.Styles.Tower(); Towerstyle.FillSampleValues(samples); Towerstyle.ShowInLegend = false; Towerstyle.Marks.Visible = true; chartview.Series.Add(Towerstyle); break; } View.AddSubview(chartview); }
public Legend_SymbolBorder() { // This call is required by the Windows Form Designer. InitializeComponent(); bar1.FillSampleValues(); Steema.TeeChart.LegendSymbol legendSymbol = tChart1.Legend.Symbol; legendSymbol.DefaultPen = false; legendSymbol.Pen.Color = Color.Red; legendSymbol.Pen.Width = 2; legendSymbol.Pen.EndCap = System.Drawing.Drawing2D.LineCap.Flat; buttonPen1.Pen = legendSymbol.Pen; }
private void ChartThemes_Load(object sender, System.EventArgs e) { bar1.FillSampleValues(); bar1.ColorEach = true; // Add all available themes to ListBox1. themeEditor = new Steema.TeeChart.Editors.ThemeEditor(tChart1.Chart, null); object[] objectCollection; //object[] objectCollection = new object[lbThemes.Items.Count]; //lbThemes.Items.CopyTo(objectCollection,0); themeEditor.AddChartThemes(out objectCollection); lbThemes.Items.Clear(); lbThemes.Items.Add(Texts.Current); lbThemes.Items.AddRange(objectCollection); lbThemes.SelectedIndex = 0; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var tChart1 = new Steema.TeeChart.TChart(ApplicationContext); tChart1.Panel.Transparent = true; tChart1.Header.Text = "Multiple series made with Xamarin.Android"; tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.FullChart; tChart1.Axes.Top.Visible = false; tChart1.ContentDescription = "MultiChart"; var myTheme = new Steema.TeeChart.Themes.BlackIsBackTheme(tChart1.Chart); myTheme.Apply(); var area1 = new Steema.TeeChart.Styles.Area(tChart1.Chart); area1.FillSampleValues(); area1.Gradient.Visible = true; area1.Gradient.StartColor = area1.Color; area1.Gradient.Transparency = 40; area1.Transparency = area1.Gradient.Transparency; var bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart); bar1.FillSampleValues(); bar1.Brush.Transparency = 30; bar1.Marks.Visible = false; bar1.Color = Steema.TeeChart.Themes.Theme.OnBlackPalette[1]; bar1.HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Top; var line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart); line1.FillSampleValues(); line1.Color = Steema.TeeChart.Themes.Theme.OnBlackPalette[3]; SetContentView(tChart1); }
public MainPage() { InitializeComponent(); Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(); bar1.FillSampleValues(5); _chartView = new ChartView() { HeightRequest = 500, WidthRequest = 500, Chart = { Series = { bar1, } } }; _chartViewExtended = new ChartViewExtended(_chartView); btnExport.Clicked += BtnExport_Clicked; stkLayout.Children.Add(_chartViewExtended); }