• λ我爱Aspx >> Asp.Net >> 用C#绘柱形图(owc编程)
  • 用C#绘柱形图(owc编程)

  • :未知  Դ:非寒日志  :2007-4-21 0:46:23  ؼ:c#
  • {

    oChartSpace.HasChartSpaceLegend = true;

    oChartSpace.ChartSpaceLegend.Position = ChartLegendPositionEnum.chLegendPositionBottom;

    }

    oChartSpace.Border.Color = "blue";

    oChartSpace.Charts.Add(0);

    oChartSpace.Charts[0].HasTitle = true;

    oChartSpace.Charts[0].Type = chartType;

    oChartSpace.Charts[0].ChartDepth = 125;

    oChartSpace.Charts[0].AspectRatio = 80;

    oChartSpace.Charts[0].Title.Caption = chartTitle;

    oChartSpace.Charts[0].Title.Font.Bold = true;

    //绘图区背景颜色

    //oChartSpace.Charts[0].PlotArea.Interior.Color = "red";

    //绘图区

    // oChartSpace.Charts[0].PlotArea.Floor.Interior.Color = "green";

    oChartSpace.Charts[0].SeriesCollection.Add(0);

    oChartSpace.Charts[0].SeriesCollection[0].DataLabelsCollection.Add();

    //柱状图颜色

    //oChartSpace.Charts[0].SeriesCollection[0].Interior.Color = "red";

    // ------------------------------------------------------------------------

    // If you're charting a pie or a variation thereof percentages make a lot

    // more sense than values...

    // ------------------------------------------------------------------------

    if (chartType == ChartChartTypeEnum.chChartTypePie ||

    chartType == ChartChartTypeEnum.chChartTypePie3D ||

    chartType == ChartChartTypeEnum.chChartTypeDoughnut)

    {

    oChartSpace.Charts[0].SeriesCollection[0].DataLabelsCollection[0].HasPercentage = true;

    Ҷƪл˵?
  • һƪ用JSON技术加快AJAX程序开发
    һƪJS的IE和Firefox兼容性汇编