public TitleAndLegendSample() { InitializeComponent(); Title = AppResources.LegendSampleTitle; this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); }
public SelectionModesSample() { InitializeComponent(); Title = AppResources.SelectionModesTitle; this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); Device.OnPlatform(Android: () => this.flexChart.SelectedDashes = new double[] { 15, 5 } ); Device.OnPlatform(WinPhone: () => this.flexChart.SelectedDashes = new double[] { 3, 1 } ); Device.OnPlatform(iOS: () => this.flexChart.SelectedDashes = new double[] { 7.5, 2.5 } ); this.pickerChartType.Items.Add(ChartType.Column.ToString()); this.pickerChartType.Items.Add(ChartType.Bar.ToString()); this.pickerChartType.Items.Add(ChartType.Scatter.ToString()); this.pickerChartType.Items.Add(ChartType.Line.ToString()); this.pickerChartType.Items.Add(ChartType.LineSymbols.ToString()); this.pickerChartType.Items.Add(ChartType.Area.ToString()); foreach (var item in Enum.GetNames(typeof(ChartSelectionModeType))) { this.pickerSelectionMode.Items.Add(item); } this.pickerChartType.SelectedIndex = 0; this.pickerSelectionMode.SelectedIndex = 1; }
public AnimationOptions() { InitializeComponent(); Title = AppResources.LoadAnimationTitle; //FlexChartDemo.Data.Views.Common.Utility.CheckNavBar(this); this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); this.pickerChartType.Items.Add(ChartType.Column.ToString()); this.pickerChartType.Items.Add(ChartType.Area.ToString()); this.pickerChartType.Items.Add(ChartType.Line.ToString()); this.pickerChartType.Items.Add(ChartType.LineSymbols.ToString()); this.pickerChartType.Items.Add(ChartType.Spline.ToString()); this.pickerChartType.Items.Add(ChartType.SplineSymbols.ToString()); this.pickerChartType.Items.Add(ChartType.SplineArea.ToString()); this.pickerChartType.Items.Add(ChartType.Scatter.ToString()); foreach (var item in Enum.GetNames(typeof(ChartAnimationMode))) { this.pickerAnimationMode.Items.Add(item); } this.pickerChartType.SelectedIndex = 0; this.pickerAnimationMode.SelectedIndex = 1; // customize animation this.flexChart.LoadAnimation.Duration = 1200; this.flexChart.LoadAnimation.StartDelay = 300; //this.flexChart.LoadAnimation.Easing = Easing.SpringIn; this.flexChart.Palette = Xuni.Forms.ChartCore.ChartPalettes.Modern; this.flexChart.AxisX.Format = "M/dd"; }
public DataLabelSample() { InitializeComponent(); Title = AppResources.DataLabelsTitle; this.pickerChartType.Items.Add(ChartType.Column.ToString()); this.pickerChartType.Items.Add(ChartType.Bar.ToString()); this.pickerChartType.Items.Add(ChartType.Scatter.ToString()); this.pickerChartType.Items.Add(ChartType.Line.ToString()); this.pickerChartType.Items.Add(ChartType.LineSymbols.ToString()); this.pickerChartType.Items.Add(ChartType.Area.ToString()); this.pickerChartType.Items.Add(ChartType.Spline.ToString()); this.pickerChartType.Items.Add(ChartType.SplineSymbols.ToString()); this.pickerChartType.Items.Add(ChartType.SplineArea.ToString()); // the data labels sample should show a bar chart by default. this.pickerChartType.SelectedIndex = 1; this.pickerChartType.IsVisible = false; this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); this.flexChart.Palette = Xuni.Forms.ChartCore.ChartPalettes.Organic; foreach (var item in Enum.GetNames(typeof(ChartLabelPosition))) { this.pickPostion.Items.Add(item); } this.pickPostion.SelectedIndex = 1; }
public BubbleChartSample() { InitializeComponent(); Title = AppResources.BubbleChartTitle; this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); this.flexChart.LoadAnimation.AnimationMode = Xuni.Forms.ChartCore.ChartAnimationMode.Series; }
public StylingSeriesSample() { InitializeComponent(); Title = AppResources.StylingSeriesTitle; this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); this.flexChart.AxisX.MajorTickWidth = 0; this.flexChart.AxisX.MinorTickWidth = 1; }
public CustomizingAxesSample() { InitializeComponent(); Title = AppResources.CustomizingAxesTitle; this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); this.flexChart.AxisX.LabelLoading += AxisXLabeLoading; this.flexChart.AxisY.LabelLoading += AxisYLabeLoading; }
public ToggleSeriesSample() { InitializeComponent(); Title = AppResources.ToggleSeriesTitle; this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); this.flexChart.Palette = Xuni.Forms.ChartCore.ChartPalettes.Darkly; this.flexChart.AxisX.Format = "M/dd"; this.flexChart.LegendToggle = true; }
public MixedChartTypesSample() { InitializeComponent(); Title = AppResources.MixedChartTypesTitle; this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); this.flexChart.AxisX.LabelAngle = 45; this.flexChart.AxisX.MinorTickWidth = 1; this.flexChart.AxisX.MajorTickWidth = 0; }
public DataLabelSample() { InitializeComponent(); this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); foreach (var item in Enum.GetNames(typeof(ChartLabelPosition))) { this.pickPostion.Items.Add(item); } this.pickPostion.SelectedIndex = 3; }
public DynamicChartsSample() { InitializeComponent(); this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); for (int i = 0; i < 8; i++) { list.Add(getItem()); } flexChart.ItemsSource = list; }
public GettingStartedSample() { InitializeComponent(); Title = AppResources.GettingStartedTitle; flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); flexChart.AxisX.MinorTickWidth = 1; flexChart.AxisX.MajorTickWidth = 0; flexChart.Tooltip.Threshold = 50; }
public ThemingSample() { InitializeComponent(); this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); IEnumerable <FieldInfo> fields = typeof(Palettes).GetRuntimeFields(); foreach (var item in fields) { picker.Items.Add(item.Name); } picker.SelectedIndex = 0; }
public Snapshot() { InitializeComponent(); Title = AppResources.ExportImageTitle; snapshotFrame.Opacity = 0; this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); var tapGestureRecognizer = new TapGestureRecognizer(); tapGestureRecognizer.Tapped += (s, e) => { snapshotFrame.Opacity = 1; }; snapshotFrame.GestureRecognizers.Add(tapGestureRecognizer); }
public DynamicChartsSample() { InitializeComponent(); Title = AppResources.DynamicChartTitle; this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); for (int i = 0; i < 8; i++) { list.Add(getItem()); } this.flexChart.ItemsSource = list; this.flexChart.Palette = Xuni.Forms.ChartCore.ChartPalettes.Coral; this.flexChart.ShowTooltips = false; }
public ZoomingAndScrolling() { InitializeComponent(); this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); //disable tooltip on android Device.OnPlatform(Android: () => this.flexChart.Tooltip = null); foreach (var item in Enum.GetNames(typeof(ZoomMode))) { this.pickerZoomMode.Items.Add(item); } this.pickerZoomMode.SelectedIndex = 2; }
public TooltipsSample() { InitializeComponent(); Title = AppResources.CustomTooltipsTitle; this.chart.ItemsSource = ChartSampleFactory.CreateEntityList(); this.chart.Palette = Xuni.Forms.ChartCore.ChartPalettes.Zen; this.chart.LoadAnimation.AnimationMode = Xuni.Forms.ChartCore.ChartAnimationMode.Series; this.chart.AxisX.MinorTickWidth = 1; this.chart.AxisX.MajorTickWidth = 0; this.chart.AxisX.LabelFontSize = 16; this.chart.AxisY.MajorTickWidth = 0; this.chart.AxisY.MajorUnit = 2000; this.chart.AxisY.AxisLineVisible = false; this.chart.AxisY.LabelFontSize = 16; }
public SelectionModesSample() { InitializeComponent(); this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); this.pickerChartType.Items.Add(ChartType.Column.ToString()); this.pickerChartType.Items.Add(ChartType.Bar.ToString()); this.pickerChartType.Items.Add(ChartType.Scatter.ToString()); this.pickerChartType.Items.Add(ChartType.Line.ToString()); this.pickerChartType.Items.Add(ChartType.LineSymbol.ToString()); this.pickerChartType.Items.Add(ChartType.Area.ToString()); foreach (var item in Enum.GetNames(typeof(ChartSelectionModeType))) { this.pickerSelectionMode.Items.Add(item); } this.pickerChartType.SelectedIndex = 0; this.pickerSelectionMode.SelectedIndex = 1; }
public LineMarkerSample() { InitializeComponent(); Title = AppResources.LineMarkerTitle; this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); this.flexChart.LineMarker.IsVisible = true; foreach (var item in Enum.GetNames(typeof(ChartMarkerInteraction))) { this.pickerInteraction.Items.Add(item); } foreach (var item in verticalPositions) { this.pickerVerPosition.Items.Add(item.ToString()); } this.pickerInteraction.SelectedIndex = 1; this.pickerVerPosition.SelectedIndex = 1; }
public ChartTypesSample() { InitializeComponent(); Title = AppResources.BasicChartTypesTitle; this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); foreach (var item in ChartSampleFactory.GetBasicChartTypes()) { this.pickerChartType.Items.Add(item.ToString()); } foreach (var item in Enum.GetNames(typeof(ChartStackingType))) { this.pickerStackType.Items.Add(item); } this.pickerChartType.SelectedIndex = 5; this.pickerStackType.SelectedIndex = 1; this.flexChart.ZoomMode = ChartZoomMode.XY; }
public AnimationOptions() { InitializeComponent(); FlexChartDemo.Data.Views.Common.Utility.CheckNavBar(this); this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); this.pickerChartType.Items.Add(ChartType.Column.ToString()); this.pickerChartType.Items.Add(ChartType.Bar.ToString()); this.pickerChartType.Items.Add(ChartType.Scatter.ToString()); this.pickerChartType.Items.Add(ChartType.Line.ToString()); this.pickerChartType.Items.Add(ChartType.LineSymbol.ToString()); this.pickerChartType.Items.Add(ChartType.Area.ToString()); foreach (var item in Enum.GetNames(typeof(AnimationMode))) { this.pickerAnimationMode.Items.Add(item); } this.pickerChartType.SelectedIndex = 0; this.pickerAnimationMode.SelectedIndex = 1; // customize animation this.flexChart.LoadAnimation.Duration = 900; this.flexChart.LoadAnimation.Easing = Easing.SpringIn; }
public TooltipsSample() { InitializeComponent(); this.chart.ItemsSource = ChartSampleFactory.CreateEntityList(); }
public GettingStartedSample() { InitializeComponent(); this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); }
public MixedChartTypesSample() { InitializeComponent(); this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); }
public StylingSeriesSample() { InitializeComponent(); this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); }
public CustomizingAxesSample() { InitializeComponent(); this.flexChart.ItemsSource = ChartSampleFactory.CreateEntityList(); }