Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

Commit f752b58

Browse files
committed
update basic usage
1 parent 671590c commit f752b58

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Just place one of these directives on a `canvas` element to create a Chart.js ch
4646

4747
You will also want to give the chart some `data` and `options`. These can be provided via the `chart-options` and `chart-data` attributes.
4848

49+
For data structures and options please refer to [Chart.js documentation](http://www.chartjs.org/docs/)
50+
4951
You can also handle chart clicks via the `chart-click` attribute.
5052

5153
Example Pie Chart
@@ -56,8 +58,6 @@ Example Pie Chart
5658
chart-data="myData"
5759
chart-options="myOptions"
5860
chart-click="onChartClick(event)"
59-
width="350"
60-
height="350"
6161
></canvas>
6262
```
6363
```javascript
@@ -77,6 +77,8 @@ $scope.onChartClick = function (event) {
7777

7878
```
7979

80+
For more examples please view the `demo` folder.
81+
8082
## Using the `tc-chartjs` directive
8183

8284
When using the `tc-chartjs` directive you will need to add an additional attribute to
@@ -90,8 +92,6 @@ Just attach a `chart-type=""` attribute to the canvas element.
9092
chart-type="doughnut"
9193
chart-data="myData"
9294
chart-options="myOptions"
93-
width="350"
94-
height="350"
9595
></canvas>
9696
```
9797

0 commit comments

Comments
 (0)