类型

    图表

    实例

    1. $config = ['path' => './tests'];
    2.  
    3. $fileObject = new \Vtiful\Kernel\Excel($config);
    4.  
    5. $fileHandle = $fileObject->getHandle();
    6.  
    7. $chart = new \Vtiful\Kernel\Chart($fileHandle, \Vtiful\Kernel\Chart::CHART_COLUMN);
    8.  
    9. $chartResource = $chart->series('Sheet1!$A$1:$A$5')
    10. ->series('Sheet1!$B$1:$B$5')
    11. ->series('Sheet1!$C$1:$C$5')
    12.  
    13. $filePath = $fileObject->data([
    14. [1, 2, 3],
    15. [2, 4, 6],
    16. [3, 6, 9],
    17. [4, 8, 12],
    18. [5, 10, 15],