I have added the extension (a wraper for google chart) "scotthuangzl/yii2-google-chart": "dev-master" to the require section of my composer.json file. However when I call that extension on views\site\myPage.php I have this error: Class 'scotthuangzl\googlechart\GoogleChart' not found. What I am doing wrong? Thanks.
This is the code where I call the google chart:
<?php
use scotthuangzl\googlechart\GoogleChart;
echo GoogleChart::widget(array('visualization' => 'BarChart',
'data' => array(
array('Type', 'Value'),
array('Var1', $model->avg1),
.............
),
'options' => array('title' => 'Variable - avg1')));
?>