protected override void SetupChart()
        {
            //Setup FlexChart
            _flexChart.Header.Content    = "World GDP Ranking";
            _flexChart.Header.Style.Font = StyleInfo.ChartHeaderFont;

            _flexChart.DataSource = HierarchicalDataSource.GetFlatOrHierarchicalGDPData(true);
            _flexChart.BindingX   = "Country";

            var ser1 = new Series()
            {
                Binding = "CurrentPrices", Name = "Current Prices"
            };
            var ser2 = new Series()
            {
                Binding = "PPPValuation", Name = "PPP Valuation", ChartType = ChartType.LineSymbols
            };

            _flexChart.Series.Add(ser1);
            _flexChart.Series.Add(ser2);

            //Setup FlexPie
            _flexPie.Header.Content    = "Category-wise Total Sales";
            _flexPie.Header.Style.Font = StyleInfo.ChartHeaderFont;

            _flexPie.DataSource         = SalesDataSource.GetSeasonSales(5);
            _flexPie.BindingName        = "Name";
            _flexPie.Binding            = "TotalSales";
            _flexPie.DataLabel.Content  = "{y} : {p:0.0} % of Total";
            _flexPie.DataLabel.Position = PieLabelPosition.Center;
            _flexPie.DataLabel.Border   = true;
        }
        protected override void SetupChart()
        {
            //Setup FlexChart
            _flexChart.Header.Content    = "Product Sales in Holidays";
            _flexChart.Header.Style.Font = StyleInfo.ChartHeaderFont;

            _flexChart.DataSource = SalesDataSource.GetSeasonSales(5);
            _flexChart.BindingX   = "Name";

            var ser1 = new Series {
                Name = "Winter Sales", Binding = "WinterTotal"
            };
            var ser2 = new Series {
                Name = "Summer Sales", Binding = "SummerTotal"
            };

            _flexChart.Series.Add(ser1);
            _flexChart.Series.Add(ser2);

            //Setup FlexPie
            _flexPie.Header.Content    = "Products Sales in Holidays";
            _flexPie.Header.Style.Font = StyleInfo.ChartHeaderFont;

            _flexPie.DataSource         = SalesDataSource.GetSeasonSales(5);
            _flexPie.BindingName        = "Name";
            _flexPie.Binding            = "TotalSales";
            _flexPie.DataLabel.Content  = "{value}";
            _flexPie.DataLabel.Position = PieLabelPosition.Inside;
            _flexPie.DataLabel.Border   = true;
        }
Exemplo n.º 3
0
        protected override void SetupChart()
        {
            var _flexPie = this.Chart as FlexPie;

            _flexPie.BindingName       = "Name";
            _flexPie.Binding           = "WinterOnline,WinterOffline,SummerOnline,SummerOffline";
            _flexPie.Header.Content    = "Product Sales By Season";
            _flexPie.Header.Style.Font = StyleInfo.ChartHeaderFont;
            _flexPie.ToolTip.Content   = "{Name} : {value}";
            _flexPie.DataSource        = SalesDataSource.GetSeasonSales(5);
            _flexPie.Titles            = AdjustTitles(_flexPie.Binding.Split(','));
        }
        protected override void SetupChart()
        {
            this.flexChart1.ChartType         = ChartType.Bar;
            this.flexChart1.Header.Content    = "Product Sales in Holidays";
            this.flexChart1.Header.Style.Font = StyleInfo.ChartHeaderFont;

            this.flexChart1.DataSource = SalesDataSource.GetSeasonSales(10);
            this.flexChart1.BindingX   = "Name";
            var winterOnline = new Series
            {
                Binding       = "WinterOnline",
                Name          = "Online",
                LegendGroup   = "Winter",
                StackingGroup = 0,
            };
            var winterOffline = new Series
            {
                Binding       = "WinterOffline",
                Name          = "Offline",
                LegendGroup   = "Winter",
                StackingGroup = 0,
            };
            var summerOnline = new Series
            {
                Binding       = "SummerOnline",
                Name          = "Online",
                LegendGroup   = "Summer",
                StackingGroup = 1,
            };
            var summerOffline = new Series
            {
                Binding       = "SummerOffline",
                Name          = "Offline",
                LegendGroup   = "Summer",
                StackingGroup = 1,
            };

            this.flexChart1.Series.Add(winterOnline);
            this.flexChart1.Series.Add(winterOffline);
            this.flexChart1.Series.Add(summerOnline);
            this.flexChart1.Series.Add(summerOffline);

            this.flexChart1.Stacking = Stacking.Stacked;
            this.flexChart1.Legend.GroupHeaderStyle.Font = StyleInfo.LegendGroupHeaderFont;
            this.flexChart1.Legend.Position = Position.Right;
            this.flexChart1.ToolTip.Content = "{y:0}";
            this.flexChart1.Rendered       += (s, e) => { _cbStacking.SelectedItem = flexChart1.Stacking; };
        }
        protected override void SetupChart()
        {
            this.flexChart1.ChartType         = ChartType.Bar;
            this.flexChart1.Header.Content    = "Product Sales";
            this.flexChart1.Header.Style.Font = StyleInfo.ChartHeaderFont;

            this.flexChart1.DataSource = SalesDataSource.GetSeasonSales(10);
            this.flexChart1.BindingX   = "Name";

            var items = new Series
            {
                Name    = "Sales",
                Binding = "TotalSales",
            };

            this.flexChart1.Series.Add(items);
        }
Exemplo n.º 6
0
        protected override void SetupChart()
        {
            this.flexChart1.ChartType         = ChartType.Bar;
            this.flexChart1.Header.Content    = "Product Sales in Holidays";
            this.flexChart1.Header.Style.Font = StyleInfo.ChartHeaderFont;

            this.flexChart1.DataSource = SalesDataSource.GetSeasonSales(10);
            this.flexChart1.BindingX   = "Name";
            this.flexChart1.Series.Add(new Series {
                Name = "Total", Binding = "TotalSales"
            });
            this.flexChart1.Series.Add(new Series {
                Name = "Winter", Binding = "WinterTotal"
            });
            this.flexChart1.Series.Add(new Series {
                Name = "Summer", Binding = "SummerTotal"
            });
        }
Exemplo n.º 7
0
        protected override void SetupChart()
        {
            var flexPie = this.Chart as FlexPie;

            flexPie.Binding            = "TotalSales";
            flexPie.BindingName        = "Name";
            flexPie.DataLabel.Content  = "{name} : {p:0}%";
            flexPie.DataLabel.Position = PieLabelPosition.Circular;
            flexPie.Header.Content     = "Sales Distribution across Products";
            flexPie.Header.Style.Font  = StyleInfo.ChartHeaderFont;
            flexPie.InnerRadius        = 0.75;
            flexPie.DataSource         = SalesDataSource.GetSeasonSales(5);
            flexPie.Rendered          += (s, e) =>
            {
                _cbPieLabel.SelectedItem = flexPie.DataLabel.Position;
                _cbInnerRad.SelectedItem = flexPie.InnerRadius;
            };
        }
Exemplo n.º 8
0
        protected override void SetupChart()
        {
            this.flexChart1.ChartType         = ChartType.Bar;
            this.flexChart1.Header.Content    = "Product Sales in Holidays";
            this.flexChart1.Header.Style.Font = StyleInfo.ChartHeaderFont;

            this.flexChart1.DataSource = SalesDataSource.GetSeasonSales(10);
            this.flexChart1.BindingX   = "Name";
            this.flexChart1.Series.Add(new Series {
                Binding = "WinterTotal", Name = "Winter"
            });
            this.flexChart1.Series.Add(new Series {
                Binding = "SummerTotal", Name = "Summer"
            });
            this.flexChart1.Stacking        = Stacking.Stacked;
            this.flexChart1.ToolTip.Content = "{y:0}";
            this.flexChart1.Rendered       += (s, e) => { _cbStacking.SelectedItem = flexChart1.Stacking; };
        }