protected void Page_Load(object sender, EventArgs e)
    {
        //MSColumn2DLineDYChart oChart = new MSColumn2DLineDYChart();
        //  MSBar2DChart oChart = new MSBar2DChart();
        MSColumn3DChart oChart = new MSColumn3DChart();
        //MSLineChart oChart = new MSLineChart();
        //MSArea2DChart oChart = new MSArea2DChart();

        // Set properties
        oChart.Background.BgColor = "ffffff";
        oChart.Background.BgAlpha = 50;
        oChart.ChartTitles.Caption = "Population of France last Years";

        // Set a template
        oChart.Template = new Libero.FusionCharts.Template.OfficeDarkTemplate();
        //  oChart.Template = new Libero.FusionCharts.Template.OfficeTemplate();
        //oChart.Template = new Libero.FusionCharts.Template.OceanTemplate();
        //oChart.Template = new Libero.FusionCharts.Template.OceanTemplate();

        // Set data   *DataTable OR IList<T>
        DataTable dtSample = GetpopulationDataTable();//GetSalesDataTable();
        oChart.DataSource = dtSample;
        oChart.DataCategoryTextField = "Year";
        oChart.DataSeriesTextField = "Country";
        oChart.DataSeriesValueField = "Population";
        //oChart.DataSeriesValueField = "Usman Sb";

        // Set the special category (Secundary. Will by draw as a line, not a column)
        //   oChart.SetAxisType("Average Population", CombinationAxisType.Secundary);

        // Link the WebControl and the Chart
        chtProductSales.ShowChart(oChart);
    }
示例#2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //MSColumn2DLineDYChart oChart = new MSColumn2DLineDYChart();
        //  MSBar2DChart oChart = new MSBar2DChart();
        MSColumn3DChart oChart = new MSColumn3DChart();

        //MSLineChart oChart = new MSLineChart();
        //MSArea2DChart oChart = new MSArea2DChart();

        // Set properties
        oChart.Background.BgColor  = "ffffff";
        oChart.Background.BgAlpha  = 50;
        oChart.ChartTitles.Caption = "Population of Germany last Years";

        // Set a template
        oChart.Template = new Libero.FusionCharts.Template.OfficeDarkTemplate();
        //  oChart.Template = new Libero.FusionCharts.Template.OfficeTemplate();
        //oChart.Template = new Libero.FusionCharts.Template.OceanTemplate();
        //oChart.Template = new Libero.FusionCharts.Template.OceanTemplate();

        // Set data   *DataTable OR IList<T>
        DataTable dtSample = GetpopulationDataTable();//GetSalesDataTable();

        oChart.DataSource            = dtSample;
        oChart.DataCategoryTextField = "Year";
        oChart.DataSeriesTextField   = "Country";
        oChart.DataSeriesValueField  = "Population";
        //oChart.DataSeriesValueField = "Usman Sb";

        // Set the special category (Secundary. Will by draw as a line, not a column)
        //   oChart.SetAxisType("Average Population", CombinationAxisType.Secundary);

        // Link the WebControl and the Chart
        chtProductSales.ShowChart(oChart);
    }