Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Update deprecated props in docs #14295

Merged
merged 3 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions docs/data/charts/pie/PieActiveArc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default function PieActiveArc() {
series={[
{
data,
highlightScope: { faded: 'global', highlighted: 'item' },
faded: { innerRadius: 30, additionalRadius: -30, color: 'gray' },
highlightScope: { fade: 'global', highlight: 'item' },
fade: { innerRadius: 30, additionalRadius: -30, color: 'gray' },
alexfauquette marked this conversation as resolved.
Show resolved Hide resolved
},
]}
height={200}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/charts/pie/PieActiveArc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default function PieActiveArc() {
series={[
{
data,
highlightScope: { faded: 'global', highlighted: 'item' },
faded: { innerRadius: 30, additionalRadius: -30, color: 'gray' },
highlightScope: { fade: 'global', highlight: 'item' },
fade: { innerRadius: 30, additionalRadius: -30, color: 'gray' },
alexfauquette marked this conversation as resolved.
Show resolved Hide resolved
},
]}
height={200}
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
Loading