我用的owc11,可是看到的效果不是三维的,百分比都在中间看不清...
大家帮看看哪的问题啊?????? Dim objCSpace As ChartSpaceClass = New ChartSpaceClass
 Dim objChart As ChChart = objCSpace.Charts.Add(0) objChart.Type = ChartChartTypeEnum.chChartTypePie3D objChart.HasLegend = True objChart.HasTitle = True
 objChart.Title.Caption = Request.QueryString("tit") '添加一个series
 objChart.SeriesCollection.Add(0) '给定数据分类
 objChart.SeriesCollection(0).SetData(ChartDimensionsEnum.chDimCategories, ChartSpecialDataSourcesEnum.chDataLiteral, strCategory) '给定数据值
 objChart.SeriesCollection(0).SetData(ChartDimensionsEnum.chDimValues, ChartSpecialDataSourcesEnum.chDataLiteral, strValue) '百分比
 Dim dlSeries1Labels As ChDataLabels = objChart.SeriesCollection(0).DataLabelsCollection.Add()
 dlSeries1Labels.HasPercentage = True '输出成GIF文件.
 'byte[] fimg = (byte[])objCSpace.GetPicture ("gif", 500, 200)
 Response.Buffer = True
 Response.ContentType = "image/gif"
 Response.BinaryWrite(CType(objCSpace.GetPicture("gif", 300, 200), Byte()))
 Response.End()

解决方案 »

  1.   

    To:joco0713(水痕) 
    请教用Excel该怎么做呢,我要显示在web页面上的
      

  2.   

    http://www.cnblogs.com/Athos/archive/2007/02/09/645930.aspx
      

  3.   

    还有谁知道怎么变成三维吗????????????找到这个百分比好像不支持显示在外面。
      >   Data   label   positioning   in   Excel   Chart   and   OWC   Chart   are     
      >   different.   In   OWC   Chart   we   only   support   automatic   which     
      >   is   the   same   as   center   whereas   in   Excel   Chart   there   are     
      >   more   options.   If   you   want   to   draw   your   own   data   labels     
      >   in   OWC   Chart,   you   should   use   custom   drawing.   Search     
      >   for   'custom   drawing'   in   the   Help   file   for   more   info.     
      >     
      >   Having   to   use   ChChartDraw.DrawText   to   emulate   Excel's   default   behavior     seems     
      >   a   little   broken   to   me,   though.   In   fact,   I   would   call   it   kbbug   material.     
      Is     
      >   this   issue   going   to   be   addressed   ?     
      

  4.   

    http://www.hedgerwow.com/BLOG/owc/OWCMain.htm各种详细的例子