Skip to content

Commit 645aaf2

Browse files
committed
readme
1 parent 9ca3a56 commit 645aaf2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,13 @@ The `ref` exposes the following methods:
7676
- `setSize(width, height)`: Set the size of the chart.
7777
- `destroy()`: Destroy the chart instance.
7878
79-
### Setting dimensions
79+
### Control plot dimensions
8080
81-
You can set the width and height either through the uPlot `options` or by passing a `style` prop to the `ChartUPlot` component. If you set both, the uPlot `options` will take precedence. Margin for the title and legend will be subtracted from the final width and height for the chart. You can control the margin via the `margin: { title?: number; legend?: number }` prop.
81+
You can set the width and height either through the uPlot `options` or by passing a `style` prop to the `ChartUPlot` component. If you set both, the uPlot `options` will take precedence.
82+
83+
### Plot margins
84+
85+
Margin for the title and legend will be subtracted from the final width and height for the chart. You can control the margin via the `margin: { title?: number; legend?: number }` prop.
8286
8387
## Demo app
8488

0 commit comments

Comments
 (0)