2012-10-15 40 views
0

如何爲此係列設置輔助軸?如何在PHPEXCEL中將次軸設置爲數據系列?

$series = new PHPExcel_Chart_DataSeries(
     PHPExcel_Chart_DataSeries::TYPE_LINECHART,  // plotType 
     PHPExcel_Chart_DataSeries::GROUPING_CLUSTERED, // plotGrouping 
     $chartOrder,         // plotOrder 
     $chartLables,         // plotLabel 
     $chartCategories,        // plotCategory 
     $chartValues         // plotValues 
    ); 
    $series->setPlotDirection(PHPExcel_Chart_DataSeries::DIRECTION_COL); 
    $plotarea = new PHPExcel_Chart_PlotArea(null, array($series)); 
    $legend = new PHPExcel_Chart_Legend(PHPExcel_Chart_Legend::POSITION_BOTTOM, null, false); 

    $chart = new PHPExcel_Chart(
     "chart_$topRow_$leftColumn",     // name 
     null,           // title 
     $legend,          // legend 
     $plotarea,          // plotArea 
     true,           // plotVisibleOnly 
     0,            // displayBlanksAs 
     null,           // xAxisLabel 
     null           // yAxisLabel 
    ); 
    $chart->setTopLeftPosition('A1'); 
    $chart->setBottomRightPosition(K12'); 
    $objWorksheet->addChart($chart); 

回答

0

你不能,次Y軸尚不支持....記住,圖表,仍處於實驗和圖表功能仍在建造

+0

對此有何更新?我很樂意爲此做出貢獻...... –

相關問題