Beispiel #1
0
 public MixedChartsPage()
 {
     LineBarConfig = RandomChartBuilder.GetChartConfig(new List <string> {
         ChartTypes.Line, ChartTypes.Bar
     }, Color.White);
     LinePieConfig = RandomChartBuilder.GetChartConfig(new List <string> {
         ChartTypes.Line, ChartTypes.Pie
     }, Color.White);
     InitializeComponent();
     BindingContext = this;
 }
Beispiel #2
0
 public ChartTypesViewModel()
 {
     LineConfig      = RandomChartBuilder.GetChartConfig(Plugin.XamarinChartJS.ChartTypes.Line, Color.White);
     BarConfig       = RandomChartBuilder.GetChartConfig(Plugin.XamarinChartJS.ChartTypes.Bar, Color.White);
     RadarConfig     = RandomChartBuilder.GetChartConfig(Plugin.XamarinChartJS.ChartTypes.Radar, Color.White);
     DoughnutConfig  = RandomChartBuilder.GetChartConfig(Plugin.XamarinChartJS.ChartTypes.Doughnut, Color.White);
     PieConfig       = RandomChartBuilder.GetChartConfig(Plugin.XamarinChartJS.ChartTypes.Pie, Color.White);
     PolarAreaConfig = RandomChartBuilder.GetChartConfig(Plugin.XamarinChartJS.ChartTypes.PolarArea, Color.White);
     BubbleConfig    = RandomChartBuilder.GetBubbleChartConfig(Color.White);
     ScatterConfig   = RandomChartBuilder.GetScatterChartConfig(Color.White);
 }
Beispiel #3
0
        public void OnChartTypeChanged(object sender, EventArgs e)
        {
            var selectedChartType = (string)chartTypePicker.SelectedItem;

            if (selectedChartType != null)
            {
                ChartViewConfig newConfig;

                if (selectedChartType == ChartTypes.Bubble)
                {
                    newConfig = RandomChartBuilder.GetBubbleChartConfig(Color.White);
                }
                else if (selectedChartType == ChartTypes.Scatter)
                {
                    newConfig = RandomChartBuilder.GetScatterChartConfig(Color.White);
                }
                else
                {
                    newConfig = RandomChartBuilder.GetChartConfig(selectedChartType, Color.White);
                }

                dynamicChart.Config.ChartConfig = newConfig.ChartConfig;
            }
        }
 public ChartLoadStressTest()
 {
     Config = RandomChartBuilder.GetChartConfig(ChartTypes.Line, Color.White);
     InitializeComponent();
     BindingContext = this;
 }
Beispiel #5
0
 public LayoutExamplesViewModel()
 {
     LineConfig = RandomChartBuilder.GetChartConfig(Plugin.XamarinChartJS.ChartTypes.Line, Color.White);
     BarConfig  = RandomChartBuilder.GetChartConfig(Plugin.XamarinChartJS.ChartTypes.Bar, Color.White);
     PieConfig  = RandomChartBuilder.GetChartConfig(Plugin.XamarinChartJS.ChartTypes.Pie, Color.White);
 }
Beispiel #6
0
 public DynamicExamplesPage()
 {
     InitializeComponent();
     BindingContext      = this;
     dynamicChart.Config = RandomChartBuilder.GetChartConfig(Plugin.XamarinChartJS.ChartTypes.Pie, Color.White);
 }