Esempio n. 1
0
        protected override void SetupChart()
        {
            this.flexChart1.ChartType         = ChartType.RangedHistogram;
            this.flexChart1.Header.Content    = "Age Distribution";
            this.flexChart1.Header.Style.Font = StyleInfo.ChartHeaderFont;

            _rangedHistoSeries = new C1.Win.Chart.RangedHistogram()
            {
                Binding      = "Age",
                BinWidth     = 10,
                BinMode      = HistogramBinning.BinWidth,
                OverflowBin  = 150,
                UnderflowBin = 0,
            };
            this.flexChart1.Series.Add(_rangedHistoSeries);
            this.flexChart1.AxisX.Title           = "Age Groups";
            this.flexChart1.AxisX.TitleStyle.Font = StyleInfo.AxisTitleFont;
            this.flexChart1.AxisY.Title           = "Number Of Persons";
            this.flexChart1.AxisY.TitleStyle.Font = StyleInfo.AxisTitleFont;
            this.flexChart1.DataSource            = Demographics.GetAgeData();
            this.flexChart1.Rendered += FlexChart1_Rendered;
        }