Skip to content

Commit 7c10d40

Browse files
committed
fixes
1 parent 5337355 commit 7c10d40

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

docs/data/charts/bubble/ScatterZAxis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Box from '@mui/material/Box';
66
import Divider from '@mui/material/Divider';
77
import Paper from '@mui/material/Paper';
88
import Typography from '@mui/material/Typography';
9-
import { useZAxis } from '@mui/x-charts-premium/hooks';
9+
import { useZAxis } from '@mui/x-charts/hooks';
1010
import { irisData } from '../dataset/irisDataset';
1111

1212
const species = ['Setosa', 'Versicolor', 'Virginica'];

docs/data/charts/bubble/ScatterZAxis.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Box from '@mui/material/Box';
66
import Divider from '@mui/material/Divider';
77
import Paper from '@mui/material/Paper';
88
import Typography from '@mui/material/Typography';
9-
import { useZAxis } from '@mui/x-charts-premium/hooks';
9+
import { useZAxis } from '@mui/x-charts/hooks';
1010
import { irisData } from '../dataset/irisDataset';
1111

1212
const species = ['Setosa', 'Versicolor', 'Virginica'];

docs/data/charts/bubble/bubble.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,17 @@ A series can set both `colorAxisId` and `sizeAxisId` to style points by two valu
6868

6969
The `zAxis` provides color and size scales that the default scatter plot uses internally.
7070

71-
Custom markers receive `color` and `size` values that have already been mapped through these scales, making it easy to derive additional visual properties such as stroke color and stroke width. For more advanced use cases, custom components can access z-axis scales directly with the `useZAxis()` hook and series data with the `useScatterSeries()` hook.
71+
Custom markers receive `color` and `size` values that have already been mapped through these scales, making it easy to derive additional visual properties such as stroke color and stroke width.
7272

73-
The example below renders the [Iris flower dataset](https://en.wikipedia.org/wiki/Iris_flower_data_set) using two z-axes: one maps species to color and another maps petal length to marker size. The custom marker derives a darker stroke color and a proportional stroke width from the mapped values, while a custom annotation demonstrates how to access the underlying size scale directly from the z-axis.
73+
For more advanced use cases, custom components can access z-axis scales directly with the `useZAxis()` hook and series data with the `useScatterSeries()` hook.
74+
75+
The example below renders the [Iris flower dataset](https://en.wikipedia.org/wiki/Iris_flower_data_set) with some classification prediction.
76+
It uses 4 z-axes to map:
77+
78+
- The species to a fill color
79+
- The predicted species to a stroke color
80+
- The petal length to the size of the mark
81+
- The confidence to the stroke width
7482

7583
{{"demo": "ScatterZAxis.js"}}
7684

0 commit comments

Comments
 (0)