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

  • :未知  Դ:非寒日志  :2007-4-21 0:46:23  ؼ:c#
  • ChartChartTypeEnum.chChartTypePie,

    ChartChartTypeEnum.chChartTypePie3D,

    ChartChartTypeEnum.chChartTypeRadarSmoothLine,

    ChartChartTypeEnum.chChartTypeSmoothLine};

    string[] chartTypesCh = new string[] { "垂直柱状统计图", "3D垂直柱状统计图", "水平柱状统计图", "3D水平柱状统计图", "区域统计图", "3D区域统计图", "中空饼图", "折线统计图", "3D折线统计图", "折线带点统计图", "饼图", "3D饼图", "网状统计图", "弧线统计图" };

    for (int i = 0; i < chartTypes.Length; i++)

    {

    chartMap.Add(chartTypesCh[i], chartTypes[i]);

    }

    }

    public ChartSpaceClass BuildCharts()

    {

    string chartCategoriesStr = String.Join("\t", chartCategoriesArr);

    string chartValuesStr = String.Join("\t", chartValuesArr);

    OWC11.ChartSpaceClass oChartSpace = new OWC11.ChartSpaceClass();

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

    // Give pie and doughnut charts a legend on the bottom. For the rest of

    // them let the control figure it out on its own.

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

    chartType = (ChartChartTypeEnum)chartMap[chartTypeCh];

    if (chartType == ChartChartTypeEnum.chChartTypePie ||

    chartType == ChartChartTypeEnum.chChartTypePie3D ||

    chartType == ChartChartTypeEnum.chChartTypeDoughnut)

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