Skip to content

Commit 6e1c6ff

Browse files
Update demos according to feedback
1 parent 9851e40 commit 6e1c6ff

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

docs/data/charts/legend/LegendCustomLabelMark.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ export default function LegendCustomLabelMark() {
1717
return (
1818
<BarChart
1919
series={[
20-
{ id: 0, data: [10], label: 'Series A', labelMarkType: HTMLCircle },
21-
{ id: 1, data: [15], label: 'Series B', labelMarkType: 'line' },
22-
{ id: 2, data: [20], label: 'Series C' },
23-
{ id: 3, data: [10], label: 'Series D', labelMarkType: SVGDiamond },
20+
{ id: 0, data: [10, 15], label: 'Series A', labelMarkType: HTMLCircle },
21+
{ id: 1, data: [15, 20], label: 'Series B', labelMarkType: 'line' },
22+
{ id: 2, data: [20, 25], label: 'Series C' },
23+
{ id: 3, data: [10, 15], label: 'Series D', labelMarkType: SVGDiamond },
2424
]}
25-
xAxis={[{ scaleType: 'band', data: ['Category'] }]}
25+
xAxis={[{ scaleType: 'band', data: ['Category 1', 'Category 2'] }]}
2626
height={200}
2727
/>
2828
);

docs/data/charts/legend/LegendCustomLabelMark.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ export default function LegendCustomLabelMark() {
1818
return (
1919
<BarChart
2020
series={[
21-
{ id: 0, data: [10], label: 'Series A', labelMarkType: HTMLCircle },
22-
{ id: 1, data: [15], label: 'Series B', labelMarkType: 'line' },
23-
{ id: 2, data: [20], label: 'Series C' },
24-
{ id: 3, data: [10], label: 'Series D', labelMarkType: SVGDiamond },
21+
{ id: 0, data: [10, 15], label: 'Series A', labelMarkType: HTMLCircle },
22+
{ id: 1, data: [15, 20], label: 'Series B', labelMarkType: 'line' },
23+
{ id: 2, data: [20, 25], label: 'Series C' },
24+
{ id: 3, data: [10, 15], label: 'Series D', labelMarkType: SVGDiamond },
2525
]}
26-
xAxis={[{ scaleType: 'band', data: ['Category'] }]}
26+
xAxis={[{ scaleType: 'band', data: ['Category 1', 'Category 2'] }]}
2727
height={200}
2828
/>
2929
);
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<BarChart
22
series={[
3-
{ id: 0, data: [10], label: 'Series A', labelMarkType: HTMLCircle },
4-
{ id: 1, data: [15], label: 'Series B', labelMarkType: 'line' },
5-
{ id: 2, data: [20], label: 'Series C' },
6-
{ id: 3, data: [10], label: 'Series D', labelMarkType: SVGDiamond },
3+
{ id: 0, data: [10, 15], label: 'Series A', labelMarkType: HTMLCircle },
4+
{ id: 1, data: [15, 20], label: 'Series B', labelMarkType: 'line' },
5+
{ id: 2, data: [20, 25], label: 'Series C' },
6+
{ id: 3, data: [10, 15], label: 'Series D', labelMarkType: SVGDiamond },
77
]}
8-
xAxis={[{ scaleType: 'band', data: ['Category'] }]}
8+
xAxis={[{ scaleType: 'band', data: ['Category 1', 'Category 2'] }]}
99
height={200}
1010
/>

docs/data/charts/pie-demo/PieChartWithCustomLegendAndTooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function SVGStar({ color, ...props }) {
2222
);
2323
}
2424

25-
export default function PieChartWithCustomLegendTooltip() {
25+
export default function PieChartWithCustomLegendAndTooltip() {
2626
return (
2727
<PieChart
2828
series={[

docs/data/charts/pie-demo/PieChartWithCustomLegendAndTooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function SVGStar({ color, ...props }: ChartsLabelCustomMarkProps) {
2323
);
2424
}
2525

26-
export default function PieChartWithCustomLegendTooltip() {
26+
export default function PieChartWithCustomLegendAndTooltip() {
2727
return (
2828
<PieChart
2929
series={[

0 commit comments

Comments
 (0)