Skip to content

Commit

Permalink
[docs] Fix multiple console.error messages on charts docs (mui#14554
Browse files Browse the repository at this point in the history
)
  • Loading branch information
JCQuintas authored and Arthur Balduini committed Sep 30, 2024
1 parent 450d84f commit c057872
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion docs/data/charts/lines/LineDataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const customize = {
height: 300,
legend: { hidden: true },
margin: { top: 5 },
stackingOrder: 'descending',
};

export default function LineDataset() {
Expand Down
1 change: 0 additions & 1 deletion docs/data/charts/lines/LineDataset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const customize = {
height: 300,
legend: { hidden: true },
margin: { top: 5 },
stackingOrder: 'descending',
};

export default function LineDataset() {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/charts/scatter/ColorScale.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,6 @@ function getGaussianSeriesData(mean, stdev = [0.5, 0.5], N = 50) {
Math.cos(2.0 * Math.PI * chance.floating({ min: 0, max: 0.99 })) *
stdev[1] +
mean[1];
return { x, y, z: x + y, id: i };
return { x, y, z: x + y, id: `${mean.join(',')}${i}` };
});
}
2 changes: 1 addition & 1 deletion docs/data/charts/scatter/ColorScale.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,6 @@ function getGaussianSeriesData(
Math.cos(2.0 * Math.PI * chance.floating({ min: 0, max: 0.99 })) *
stdev[1] +
mean[1];
return { x, y, z: x + y, id: i };
return { x, y, z: x + y, id: `${mean.join(',')}${i}` };
});
}
1 change: 1 addition & 0 deletions docs/data/charts/styling/CustomOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function LoadingOverlay() {

return (
<LoadingReact
key={index}
x={xScale(item)}
width={bandWidth}
y={bottom - barHeight}
Expand Down
1 change: 1 addition & 0 deletions docs/data/charts/styling/CustomOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function LoadingOverlay() {

return (
<LoadingReact
key={index}
x={xScale(item)}
width={bandWidth}
y={bottom - barHeight}
Expand Down

0 comments on commit c057872

Please sign in to comment.