This repository was archived by the owner on Nov 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ Just place one of these directives on a `canvas` element to create a Chart.js ch
46
46
47
47
You will also want to give the chart some ` data ` and ` options ` . These can be provided via the ` chart-options ` and ` chart-data ` attributes.
48
48
49
+ For data structures and options please refer to [ Chart.js documentation] ( http://www.chartjs.org/docs/ )
50
+
49
51
You can also handle chart clicks via the ` chart-click ` attribute.
50
52
51
53
Example Pie Chart
@@ -56,8 +58,6 @@ Example Pie Chart
56
58
chart-data =" myData"
57
59
chart-options =" myOptions"
58
60
chart-click =" onChartClick(event)"
59
- width =" 350"
60
- height =" 350"
61
61
></canvas >
62
62
```
63
63
``` javascript
@@ -77,6 +77,8 @@ $scope.onChartClick = function (event) {
77
77
78
78
```
79
79
80
+ For more examples please view the ` demo ` folder.
81
+
80
82
## Using the ` tc-chartjs ` directive
81
83
82
84
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.
90
92
chart-type =" doughnut"
91
93
chart-data =" myData"
92
94
chart-options =" myOptions"
93
- width =" 350"
94
- height =" 350"
95
95
></canvas >
96
96
```
97
97
You can’t perform that action at this time.
0 commit comments