Closed mrbig00 closed 4 years ago
Had to downgrade my version but now it gives "TypeError: (new Chart(...)).bar is not a function" error
+1
i'll have a look at it. thanks.
fixed on new version 3.0
Run
composer require nnnick/chartjs "v2.9.3"
And add to config:
'components' => [
'assetManager' => [
'bundles' => [
'dosamigos\chartjs\ChartJsAsset' => [
'sourcePath' => '@vendor/nnnick/chartjs/dist',
],
],
],
],
Run
composer require nnnick/chartjs "v2.9.3"
And add to config:
'components' => [ 'assetManager' => [ 'bundles' => [ 'dosamigos\chartjs\ChartJsAsset' => [ 'sourcePath' => '@vendor/nnnick/chartjs/dist', ], ], ], ],
Now it's giving me Setting read-only property: yii\web\Application::assetManager
@fasi1208
You must add assetManager
configuration into components
section, check it
@fasi1208 You must add
assetManager
configuration intocomponents
section, check it
Where to add it? means in composer.json
where to add it ?
@fasi1208 In your config file, for example backend/config/main.php
For example
to me work!!! with 2.9.4.
composer require nnnick/chartjs "v2.9.4"
some people know how can use on 4.2.0, the "dist" folder no exist
In the latest release
dev-master
charts js no more includes thedist
folder, so an error is thrown when using the widget:Invalid Argument – yii\base\InvalidArgumentException
The file or directory to be published does not exist: /shared/httpd/project/vendor/bower-asset/chartjs/dist