Skip to content

Commit 6bfa708

Browse files
authored
Update ScatterChart.md
1 parent b643c87 commit 6bfa708

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

docs/documentation/docs/controls/ScatterChart.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,11 @@ Unlike other charts, scatter charts use `x` and `y` coordinates.
1010

1111
To create a scatter chart, add the ChartControl import:
1212

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

33-
Followed by:
17+
Then render the ChartControl:
3418

3519
```TypeScript
3620
<ChartControl

0 commit comments

Comments
 (0)