Skip to content

Commit

Permalink
[docs] Update deprecated props in docs (#14295)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Fauquette <[email protected]>
Co-authored-by: Alexandre Fauquette <[email protected]>
  • Loading branch information
JCQuintas and alexfauquette authored Aug 27, 2024
1 parent 0c30a6f commit 8e82705
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions docs/data/charts/bars/BarAnimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export default function BarAnimation() {
}

const highlightScope = {
highlighted: 'series',
faded: 'global',
highlight: 'series',
fade: 'global',
};

const series = [
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/bars/BarAnimation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export default function BarAnimation() {
}

const highlightScope = {
highlighted: 'series',
faded: 'global',
highlight: 'series',
fade: 'global',
} as const;

const series = [
Expand Down
6 changes: 3 additions & 3 deletions docs/data/charts/bars/BarClickNoSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const barChartsParams = {
label: 'A',
stack: 'total',
highlightScope: {
highlighted: 'item',
highlight: 'item',
},
},
{
Expand All @@ -26,15 +26,15 @@ const barChartsParams = {
label: 'B',
stack: 'total',
highlightScope: {
highlighted: 'item',
highlight: 'item',
},
},
{
id: 'series-3',
data: [4, 2, 5, 4, 1],
label: 'C',
highlightScope: {
highlighted: 'item',
highlight: 'item',
},
},
],
Expand Down
6 changes: 3 additions & 3 deletions docs/data/charts/lines/LineClickNoSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const lineChartsParams = {
area: true,
stack: 'total',
highlightScope: {
highlighted: 'item',
highlight: 'item',
},
},
{
Expand All @@ -28,7 +28,7 @@ const lineChartsParams = {
area: true,
stack: 'total',
highlightScope: {
highlighted: 'item',
highlight: 'item',
},
},
{
Expand All @@ -38,7 +38,7 @@ const lineChartsParams = {
area: true,
stack: 'total',
highlightScope: {
highlighted: 'item',
highlight: 'item',
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/pie/PieActiveArc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function PieActiveArc() {
series={[
{
data,
highlightScope: { faded: 'global', highlighted: 'item' },
highlightScope: { fade: 'global', highlight: 'item' },
faded: { innerRadius: 30, additionalRadius: -30, color: 'gray' },
},
]}
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/pie/PieActiveArc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function PieActiveArc() {
series={[
{
data,
highlightScope: { faded: 'global', highlighted: 'item' },
highlightScope: { fade: 'global', highlight: 'item' },
faded: { innerRadius: 30, additionalRadius: -30, color: 'gray' },
},
]}
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/pie/PieActiveArc.tsx.preview
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
series={[
{
data,
highlightScope: { faded: 'global', highlighted: 'item' },
highlightScope: { fade: 'global', highlight: 'item' },
faded: { innerRadius: 30, additionalRadius: -30, color: 'gray' },
},
]}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/scatter/ScatterClickNoSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const scatterChartsParams = {
],
label: 'A',
highlightScope: {
highlighted: 'item',
highlight: 'item',
},
},
{
Expand All @@ -46,7 +46,7 @@ const scatterChartsParams = {
],
label: 'B',
highlightScope: {
highlighted: 'item',
highlight: 'item',
},
},
],
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/tooltip/ElementHighlights.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ const pieChartsParams = {
data: [{ value: 5 }, { value: 10 }, { value: 15 }],
label: 'Series 1',
outerRadius: 80,
highlighted: { additionalRadius: 10 },
highlight: { additionalRadius: 10 },
},
{
data: [{ value: 5 }, { value: 10 }, { value: 15 }],
label: 'Series 1',
innerRadius: 90,
highlighted: { additionalRadius: 10 },
highlight: { additionalRadius: 10 },
},
],
height: 400,
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/tooltip/ElementHighlights.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ const pieChartsParams = {
data: [{ value: 5 }, { value: 10 }, { value: 15 }],
label: 'Series 1',
outerRadius: 80,
highlighted: { additionalRadius: 10 },
highlight: { additionalRadius: 10 },
},
{
data: [{ value: 5 }, { value: 10 }, { value: 15 }],
label: 'Series 1',
innerRadius: 90,
highlighted: { additionalRadius: 10 },
highlight: { additionalRadius: 10 },
},
],
height: 400,
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/tooltip/SyncHighlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const barChartsProps = {
{
data: [3, 4, 1, 6, 5],
id: 'sync',
highlightScope: { highlighted: 'item', faded: 'global' },
highlightScope: { highlight: 'item', fade: 'global' },
},
],
xAxis: [{ scaleType: 'band', data: ['A', 'B', 'C', 'D', 'E'] }],
Expand All @@ -55,7 +55,7 @@ const pieChartProps = {
{ value: 6, label: 'D', id: 'D' },
{ value: 5, label: 'E', id: 'E' },
],
highlightScope: { highlighted: 'item', faded: 'global' },
highlightScope: { highlight: 'item', fade: 'global' },
},
],
height: 400,
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/tooltip/SyncHighlight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const barChartsProps: BarChartProps = {
{
data: [3, 4, 1, 6, 5],
id: 'sync',
highlightScope: { highlighted: 'item', faded: 'global' },
highlightScope: { highlight: 'item', fade: 'global' },
},
],
xAxis: [{ scaleType: 'band', data: ['A', 'B', 'C', 'D', 'E'] }],
Expand All @@ -56,7 +56,7 @@ const pieChartProps: PieChartProps = {
{ value: 6, label: 'D', id: 'D' },
{ value: 5, label: 'E', id: 'E' },
],
highlightScope: { highlighted: 'item', faded: 'global' },
highlightScope: { highlight: 'item', fade: 'global' },
},
],
height: 400,
Expand Down

0 comments on commit 8e82705

Please sign in to comment.