You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -191,7 +191,7 @@ If you want, you provide a template to display until the `datapromise` is resolv
191
191
192
192

193
193
194
-
You can provide full React controls within the `loadingtemplate`. For example, to use the Office Fabric UI `Spinner` control, you would use the following codE:
194
+
You can provide full React controls within the `loadingtemplate`. For example, to use the Office UI Fabric `Spinner` control, you would use the following code:
The ChartControl control can be configured with the following properties:
299
+
The ChartControl can be configured with the following properties:
300
300
301
301
| Property | Type | Required | Description |
302
302
| ---- | ---- | ---- | ---- |
@@ -330,6 +330,22 @@ You can call the following methods to interact with the chart after it has been
330
330
| toBase64Image | () => string | Returns a base 64 encoded string of the chart in it's current state. |
331
331
| update | (config?: number \| boolean \| string) => void | Triggers an update of the chart. This can be safely called after updating the data object. This will update all scales, legends, and then re-render the chart. |
332
332
333
+
### ChartType
334
+
335
+
Defines the type of chart that will be rendered. For more information what data structure is required for each type of chart, review the Chart.js documentation ( links below ).
336
+
337
+
| Name | Chart.js Equivalent | Description |
338
+
| ---- | ---- | ---- |
339
+
|[Bar](./BarChart.md)|[bar](https://www.chartjs.org/docs/latest/charts/bar.html)| Vertical bar chart |
|[HorizontalBar](./BarChart.md#horizontalbarchart)|[horizontalBar](https://www.chartjs.org/docs/latest/charts/bar.html#horizontal-bar-chart)| Horizontal bar chart |
343
+
|[Line](./LineChart.md)|[line](https://www.chartjs.org/docs/latest/charts/line.html)| Line chart |
344
+
|[Pie](./PieChart.md)|[pie](https://www.chartjs.org/docs/latest/charts/doughnut.html)| Pie chart |
345
+
|[PolarArea](./PolarAreaChart.md)|[polarArea](https://www.chartjs.org/docs/latest/charts/polar.html)| Polar area chart |
The `IChartAccessibility` interface implements the following properties:
@@ -367,22 +383,6 @@ Defines one of the possible Office color palette to use in a chart. The color pa
367
383
| OfficeMonochromatic12 | Monochromatic Palette 12 | Blue gradient, light to dark ||
368
384
| OfficeMonochromatic13 | Monochromatic Palette 13 | Green gradient, light to dark ||
369
385
370
-
### ChartType
371
-
372
-
Defines the type of chart that will be rendered. For more information what data structure is required for each type of chart, review the Chart.js documentation ( links below ).
373
-
374
-
| Name | Chart.js Equivalent | Description |
375
-
| ---- | ---- | ---- |
376
-
|[Bar](./BarChart.md)|[bar](https://www.chartjs.org/docs/latest/charts/bar.html)| Vertical bar chart |
|[HorizontalBar](./BarChart.md#horizontalbarchart)|[horizontalBar](https://www.chartjs.org/docs/latest/charts/bar.html#horizontal-bar-chart)| Horizontal bar chart |
380
-
|[Line](./LineChart.md)|[line](https://www.chartjs.org/docs/latest/charts/line.html)| Line chart |
381
-
|[Pie](./PieChart.md)|[pie](https://www.chartjs.org/docs/latest/charts/doughnut.html)| Pie chart |
382
-
|[PolarArea](./PolarAreaChart.md)|[polarArea](https://www.chartjs.org/docs/latest/charts/polar.html)| Polar area chart |
The easiest way to customize a chart is to use the [plugin functionality](https://www.chartjs.org/docs/latest/notes/extensions.html) provided by [Chart.js](https://www.chartjs.org/). In order to use a plugin, simply pass an array of objects that implement the `IChartPlugin` interface to the `plugins` property of the ChartControl.
0 commit comments