dongzhanlu8890 2017-04-25 19:54 采纳率: 0%
浏览 85
已采纳

PHPExcel饼图系列选项在主轴上为25%

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%.enter image description here

  • 写回答

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 关于无人驾驶的航向角
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了