I was able to create 2 pie charts programmatically (im using PHP), using the PHPExcel library (no need to list the code since it's too large) but i can not find a way to increase the distance between the pie's pieces like in the picture below. Basically, im trying to programmatically increase the Series Options on primary axis by 25%.
2条回答 默认 最新
- dqwh2717 2017-04-28 14:07关注
When you init new PHPExcel_Chart_DataSeries object, you can specified $plotStyle=true.
public function __construct($plotType = null, $plotGrouping = null, $plotOrder = array(), $plotLabel = array(), $plotCategory = array(), $plotValues = array(), $plotDirection = null, $smoothLine = null, $plotStyle = null)
For PHPExcel\Examples\33chartcreate-pie.php:88 it will be something like there:
$series1 = new PHPExcel_Chart_DataSeries( PHPExcel_Chart_DataSeries::TYPE_PIECHART, NULL, range(0, count($dataSeriesValues1)-1), $dataSeriesLabels1, $xAxisTickValues1, $dataSeriesValues1, null, null, true );
In sources: https://github.com/PHPOffice/PHPExcel/blob/1.8/Classes/PHPExcel/Writer/Excel2007/Chart.php#L1169
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 如何解决ldsc的这条报错/index error
- ¥15 VS2022+WDK驱动开发环境
- ¥30 关于#java#的问题,请各位专家解答!
- ¥30 vue+element根据数据循环生成多个table,如何实现最后一列 平均分合并
- ¥20 pcf8563时钟芯片不启振
- ¥20 pip2.40更新pip2.43时报错
- ¥15 换yum源但仍然用不了httpd
- ¥50 C# 使用DEVMOD设置打印机首选项
- ¥15 麒麟V10 arm安装gdal
- ¥20 OPENVPN连接问题