Skip to content

Commit 59990e8

Browse files
authored
Update PieChart.md
1 parent 35a5a73 commit 59990e8

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

docs/documentation/docs/controls/PieChart.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,11 @@ Pie charts are divided into segments, each of which shows the proportional value
88

99
To create a pie chart, add the ChartControl import:
1010

11-
```TypeScript
12-
import { ChartControl } from "@pnp/spfx-controls-react/lib/ChartControl";
13-
```
14-
15-
Then render the ChartControl:
16-
17-
```TypeScript
18-
<ChartControl
19-
type='pie'
20-
data={data}
21-
options={options}
22-
/>
23-
```
24-
25-
Alternatively, you can use the following import:
26-
2711
```TypeScript
2812
import { ChartControl, ChartType } from '@pnp/spfx-controls-react/lib/ChartControl';
2913
```
3014

31-
Followed by:
15+
Then render the ChartControl:
3216

3317
```TypeScript
3418
<ChartControl

0 commit comments

Comments
 (0)