I have installed HighChart per composer …
"minimum-stability": "dev",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
"kartik-v/yii2-widgets": "dev-master",
"kartik-v/yii2-builder": "*",
"yiisoft/yii2-swiftmailer": "*",
"yiisoft/yii2-jui": "*",
"miloschuman/yii2-highcharts-widget": "*"
},
and I have in my view I have included exporting.js
use miloschuman\highcharts\Highcharts;
echo Highcharts::widget([
‘options’ => [
'scripts' => [
'modules/exporting.js',
],
'credits' => ['enabled' => false],
'chart' =>['height'=>'700', 'spacingBottom'=>40],
'colors'=>['#ff0000', '#0000ff', '#00ff00','#7cb5ec', '#434348', '#90ed7d', '#f7a35c', '#8085e9', '#f15c80', '#e4d354', '#8085e8', '#8d4653', '#91e8e1'],
'plotOptions'=>['line'=>['connectNulls'=>false]],
'title' => ['text' => '1st Stick Success Percentage'],
'xAxis' => [
'categories' => array_keys($categories)
],
'yAxis' => [
'title' => ['text' => 'Percentage']
],
'series' => $data
]
]);
The export button does not appear and I can not determine what I’ve done wrong.
thanks