用OWC组件制作饼图,百分比由值自动生成,但显示的百分比都为整数~求如何才能设置为小数。
部分代码:        objChart.SeriesCollection.Add(0);
                objChart.SeriesCollection[0].DataLabelsCollection.Add();                objChart.SeriesCollection[0].DataLabelsCollection[0].HasCategoryName = false;
                //显示各部分的数值
                  objChart.SeriesCollection[0].DataLabelsCollection[0].HasValue = false;
                //显示各部分的百分比
                objChart.SeriesCollection[0].DataLabelsCollection[0].HasPercentage = true;
              objChart.SeriesCollection[0].DataLabelsCollection[0].numberformat="0.00%";---这里设置的格式只能是显示的数值起作用~显示的百分比没有作用,依然是整数。希望各位高手不惜赐教。万分感谢~