Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

📝 [README] Updated tags #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set.

Either run

```
```bash
composer require 2amigos/yii2-chartjs-widget:~2.0
```
or add
Expand Down Expand Up @@ -49,7 +49,8 @@ The following types are supported:
The following example is using the `Line` type of chart. Please, check [ChartJs plugin](http://www.chartjs.org/docs/)
documentation for the different types supported by the plugin.

```
```php

use dosamigos\chartjs\ChartJs;

<?= ChartJs::widget([
Expand Down Expand Up @@ -86,8 +87,11 @@ use dosamigos\chartjs\ChartJs;
]);
?>
```

Plugins usage example (displaying percentages on the Pie Chart):
```

```php

echo ChartJs::widget([
'type' => 'pie',
'id' => 'structurePie',
Expand Down