3D饼图看起来像普通图表

时间:2017-07-06 11:29:15

标签: php highcharts pie-chart

我想使用ObHighchartsBundle创建一个3D饼图,但不是3d,而是饼图显示为普通派?我不知道为什么!我添加了options3d和深度字段

它看起来如何:

enter image description here

Contoller.php

$containerpie=$chart->chartPie($servey);
$html =  $this->render('AppBundle :Charting:index.html.twig',array(
        'survey' =>$survey,
        'containerpie' =>$containerpie

    ));


    return $html;
}

ChartingClass.php:

<div id="containerpie" ></div>
<script src="http://code.highcharts.com/4.1.8/highcharts.js"></script>

<script src="http://code.highcharts.com/4.1.8/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/data.js"></script>
 <script src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
 <script src="https://code.highcharts.com/modules/data.js"></script>
 <script src="https://code.highcharts.com/highcharts-3d.js"></script>


<script type="text/javascript">
    {{ chart(containerpie) }}
</script>

Twig:

{{1}}

0 个答案:

没有答案