Skip to content

Commit 8e82705

Browse files
[docs] Update deprecated props in docs (#14295)
Signed-off-by: Alexandre Fauquette <[email protected]> Co-authored-by: Alexandre Fauquette <[email protected]>
1 parent 0c30a6f commit 8e82705

File tree

12 files changed

+23
-23
lines changed

12 files changed

+23
-23
lines changed

docs/data/charts/bars/BarAnimation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export default function BarAnimation() {
6868
}
6969

7070
const highlightScope = {
71-
highlighted: 'series',
72-
faded: 'global',
71+
highlight: 'series',
72+
fade: 'global',
7373
};
7474

7575
const series = [

docs/data/charts/bars/BarAnimation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export default function BarAnimation() {
6868
}
6969

7070
const highlightScope = {
71-
highlighted: 'series',
72-
faded: 'global',
71+
highlight: 'series',
72+
fade: 'global',
7373
} as const;
7474

7575
const series = [

docs/data/charts/bars/BarClickNoSnap.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const barChartsParams = {
1717
label: 'A',
1818
stack: 'total',
1919
highlightScope: {
20-
highlighted: 'item',
20+
highlight: 'item',
2121
},
2222
},
2323
{
@@ -26,15 +26,15 @@ const barChartsParams = {
2626
label: 'B',
2727
stack: 'total',
2828
highlightScope: {
29-
highlighted: 'item',
29+
highlight: 'item',
3030
},
3131
},
3232
{
3333
id: 'series-3',
3434
data: [4, 2, 5, 4, 1],
3535
label: 'C',
3636
highlightScope: {
37-
highlighted: 'item',
37+
highlight: 'item',
3838
},
3939
},
4040
],

docs/data/charts/lines/LineClickNoSnap.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const lineChartsParams = {
1818
area: true,
1919
stack: 'total',
2020
highlightScope: {
21-
highlighted: 'item',
21+
highlight: 'item',
2222
},
2323
},
2424
{
@@ -28,7 +28,7 @@ const lineChartsParams = {
2828
area: true,
2929
stack: 'total',
3030
highlightScope: {
31-
highlighted: 'item',
31+
highlight: 'item',
3232
},
3333
},
3434
{
@@ -38,7 +38,7 @@ const lineChartsParams = {
3838
area: true,
3939
stack: 'total',
4040
highlightScope: {
41-
highlighted: 'item',
41+
highlight: 'item',
4242
},
4343
},
4444
],

docs/data/charts/pie/PieActiveArc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function PieActiveArc() {
1313
series={[
1414
{
1515
data,
16-
highlightScope: { faded: 'global', highlighted: 'item' },
16+
highlightScope: { fade: 'global', highlight: 'item' },
1717
faded: { innerRadius: 30, additionalRadius: -30, color: 'gray' },
1818
},
1919
]}

docs/data/charts/pie/PieActiveArc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function PieActiveArc() {
1313
series={[
1414
{
1515
data,
16-
highlightScope: { faded: 'global', highlighted: 'item' },
16+
highlightScope: { fade: 'global', highlight: 'item' },
1717
faded: { innerRadius: 30, additionalRadius: -30, color: 'gray' },
1818
},
1919
]}

docs/data/charts/pie/PieActiveArc.tsx.preview

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
series={[
33
{
44
data,
5-
highlightScope: { faded: 'global', highlighted: 'item' },
5+
highlightScope: { fade: 'global', highlight: 'item' },
66
faded: { innerRadius: 30, additionalRadius: -30, color: 'gray' },
77
},
88
]}

docs/data/charts/scatter/ScatterClickNoSnap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const scatterChartsParams = {
2727
],
2828
label: 'A',
2929
highlightScope: {
30-
highlighted: 'item',
30+
highlight: 'item',
3131
},
3232
},
3333
{
@@ -46,7 +46,7 @@ const scatterChartsParams = {
4646
],
4747
label: 'B',
4848
highlightScope: {
49-
highlighted: 'item',
49+
highlight: 'item',
5050
},
5151
},
5252
],

docs/data/charts/tooltip/ElementHighlights.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ const pieChartsParams = {
7373
data: [{ value: 5 }, { value: 10 }, { value: 15 }],
7474
label: 'Series 1',
7575
outerRadius: 80,
76-
highlighted: { additionalRadius: 10 },
76+
highlight: { additionalRadius: 10 },
7777
},
7878
{
7979
data: [{ value: 5 }, { value: 10 }, { value: 15 }],
8080
label: 'Series 1',
8181
innerRadius: 90,
82-
highlighted: { additionalRadius: 10 },
82+
highlight: { additionalRadius: 10 },
8383
},
8484
],
8585
height: 400,

docs/data/charts/tooltip/ElementHighlights.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ const pieChartsParams = {
7373
data: [{ value: 5 }, { value: 10 }, { value: 15 }],
7474
label: 'Series 1',
7575
outerRadius: 80,
76-
highlighted: { additionalRadius: 10 },
76+
highlight: { additionalRadius: 10 },
7777
},
7878
{
7979
data: [{ value: 5 }, { value: 10 }, { value: 15 }],
8080
label: 'Series 1',
8181
innerRadius: 90,
82-
highlighted: { additionalRadius: 10 },
82+
highlight: { additionalRadius: 10 },
8383
},
8484
],
8585
height: 400,

0 commit comments

Comments
 (0)