From 232a82c108a79f547f747ac704270566c93da467 Mon Sep 17 00:00:00 2001 From: Jose Quintas Date: Mon, 9 Sep 2024 18:27:48 +0200 Subject: [PATCH 1/2] Fix multiple console.error messages on docs --- docs/data/charts/lines/LineDataset.js | 1 - docs/data/charts/lines/LineDataset.tsx | 1 - docs/data/charts/scatter/BasicScatter.js | 2 +- docs/data/charts/scatter/BasicScatter.tsx | 2 +- docs/data/charts/scatter/BasicScatter.tsx.preview | 2 +- docs/data/charts/scatter/ColorScale.js | 2 +- docs/data/charts/scatter/ColorScale.tsx | 2 +- docs/data/charts/styling/CustomOverlay.js | 1 + docs/data/charts/styling/CustomOverlay.tsx | 1 + 9 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/data/charts/lines/LineDataset.js b/docs/data/charts/lines/LineDataset.js index d25aa69a493c3..936c9cd946a7a 100644 --- a/docs/data/charts/lines/LineDataset.js +++ b/docs/data/charts/lines/LineDataset.js @@ -16,7 +16,6 @@ const customize = { height: 300, legend: { hidden: true }, margin: { top: 5 }, - stackingOrder: 'descending', }; export default function LineDataset() { diff --git a/docs/data/charts/lines/LineDataset.tsx b/docs/data/charts/lines/LineDataset.tsx index e83449b420c39..fb00e63ac5343 100644 --- a/docs/data/charts/lines/LineDataset.tsx +++ b/docs/data/charts/lines/LineDataset.tsx @@ -16,7 +16,6 @@ const customize = { height: 300, legend: { hidden: true }, margin: { top: 5 }, - stackingOrder: 'descending', }; export default function LineDataset() { diff --git a/docs/data/charts/scatter/BasicScatter.js b/docs/data/charts/scatter/BasicScatter.js index 07ddcab5eb8b9..29b6e0e83c39e 100644 --- a/docs/data/charts/scatter/BasicScatter.js +++ b/docs/data/charts/scatter/BasicScatter.js @@ -177,7 +177,7 @@ export default function BasicScatter() { }, { label: 'Series B', - data: data.map((v) => ({ x: v.x1, y: v.y2, id: v.id })), + data: data.map((v) => ({ x: v.x1, y: v.y2, id: `${v.id}b` })), }, ]} /> diff --git a/docs/data/charts/scatter/BasicScatter.tsx b/docs/data/charts/scatter/BasicScatter.tsx index 07ddcab5eb8b9..29b6e0e83c39e 100644 --- a/docs/data/charts/scatter/BasicScatter.tsx +++ b/docs/data/charts/scatter/BasicScatter.tsx @@ -177,7 +177,7 @@ export default function BasicScatter() { }, { label: 'Series B', - data: data.map((v) => ({ x: v.x1, y: v.y2, id: v.id })), + data: data.map((v) => ({ x: v.x1, y: v.y2, id: `${v.id}b` })), }, ]} /> diff --git a/docs/data/charts/scatter/BasicScatter.tsx.preview b/docs/data/charts/scatter/BasicScatter.tsx.preview index 36dff4f51a156..71e81d560e56d 100644 --- a/docs/data/charts/scatter/BasicScatter.tsx.preview +++ b/docs/data/charts/scatter/BasicScatter.tsx.preview @@ -8,7 +8,7 @@ }, { label: 'Series B', - data: data.map((v) => ({ x: v.x1, y: v.y2, id: v.id })), + data: data.map((v) => ({ x: v.x1, y: v.y2, id: `${v.id}b` })), }, ]} /> \ No newline at end of file diff --git a/docs/data/charts/scatter/ColorScale.js b/docs/data/charts/scatter/ColorScale.js index 5c046a3de76d2..627ffffda6073 100644 --- a/docs/data/charts/scatter/ColorScale.js +++ b/docs/data/charts/scatter/ColorScale.js @@ -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}` }; }); } diff --git a/docs/data/charts/scatter/ColorScale.tsx b/docs/data/charts/scatter/ColorScale.tsx index 2a2a81061e84b..41a56a843b065 100644 --- a/docs/data/charts/scatter/ColorScale.tsx +++ b/docs/data/charts/scatter/ColorScale.tsx @@ -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}` }; }); } diff --git a/docs/data/charts/styling/CustomOverlay.js b/docs/data/charts/styling/CustomOverlay.js index 502ce26a93e22..d9a8a09a32756 100644 --- a/docs/data/charts/styling/CustomOverlay.js +++ b/docs/data/charts/styling/CustomOverlay.js @@ -36,6 +36,7 @@ function LoadingOverlay() { return ( Date: Tue, 10 Sep 2024 12:17:29 +0200 Subject: [PATCH 2/2] revert basic scatter changes --- docs/data/charts/scatter/BasicScatter.js | 2 +- docs/data/charts/scatter/BasicScatter.tsx | 2 +- docs/data/charts/scatter/BasicScatter.tsx.preview | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/data/charts/scatter/BasicScatter.js b/docs/data/charts/scatter/BasicScatter.js index 29b6e0e83c39e..07ddcab5eb8b9 100644 --- a/docs/data/charts/scatter/BasicScatter.js +++ b/docs/data/charts/scatter/BasicScatter.js @@ -177,7 +177,7 @@ export default function BasicScatter() { }, { label: 'Series B', - data: data.map((v) => ({ x: v.x1, y: v.y2, id: `${v.id}b` })), + data: data.map((v) => ({ x: v.x1, y: v.y2, id: v.id })), }, ]} /> diff --git a/docs/data/charts/scatter/BasicScatter.tsx b/docs/data/charts/scatter/BasicScatter.tsx index 29b6e0e83c39e..07ddcab5eb8b9 100644 --- a/docs/data/charts/scatter/BasicScatter.tsx +++ b/docs/data/charts/scatter/BasicScatter.tsx @@ -177,7 +177,7 @@ export default function BasicScatter() { }, { label: 'Series B', - data: data.map((v) => ({ x: v.x1, y: v.y2, id: `${v.id}b` })), + data: data.map((v) => ({ x: v.x1, y: v.y2, id: v.id })), }, ]} /> diff --git a/docs/data/charts/scatter/BasicScatter.tsx.preview b/docs/data/charts/scatter/BasicScatter.tsx.preview index 71e81d560e56d..36dff4f51a156 100644 --- a/docs/data/charts/scatter/BasicScatter.tsx.preview +++ b/docs/data/charts/scatter/BasicScatter.tsx.preview @@ -8,7 +8,7 @@ }, { label: 'Series B', - data: data.map((v) => ({ x: v.x1, y: v.y2, id: `${v.id}b` })), + data: data.map((v) => ({ x: v.x1, y: v.y2, id: v.id })), }, ]} /> \ No newline at end of file