Skip to content

Commit

Permalink
[charts][docs] Polish code formatting (#14603)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Sep 16, 2024
1 parent a8e757d commit c5e0158
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/data/charts/composition/composition.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ For example, the Bar Chart component assumes that `series` will be of type `'bar
With composition, the chart container isn't able to guess the series type, so you must explicitly define it.

```jsx
<BarChart series={[{
<BarChart
series={[{
data: [1, 2, 3] // No need to specify it is a bar series
}]} />
}]}
/>

<ChartContainer
series={[
Expand Down

0 comments on commit c5e0158

Please sign in to comment.