From 94e533b5268d3fadbc477d2950b261b74f5707eb Mon Sep 17 00:00:00 2001 From: Anush Gupta <74965306+Anush2303@users.noreply.github.com> Date: Thu, 4 Sep 2025 11:17:22 +0000 Subject: [PATCH 1/2] test locale --- apps/plotly_examples/src/data/data_001.json | 141 +++++++++++++------- apps/plotly_examples/tests/test-matrix.ts | 6 +- 2 files changed, 99 insertions(+), 48 deletions(-) diff --git a/apps/plotly_examples/src/data/data_001.json b/apps/plotly_examples/src/data/data_001.json index d9a053f062..01fdeb1865 100644 --- a/apps/plotly_examples/src/data/data_001.json +++ b/apps/plotly_examples/src/data/data_001.json @@ -1,48 +1,99 @@ { - "data": [ - { - "type": "scatter", - "name": "Product Category", - "x": [ - "2023-01-01", - "2023-02-01", - "2023-03-01", - "2023-04-01", - "2023-05-01", - "2023-06-01", - "2023-07-01", - "2023-08-01", - "2023-09-01", - "2023-10-01", - "2023-11-01", - "2023-12-01" - ], - "y": [ - 5000, - 5200, - 5400, - 5600, - 5800, - 6000, - 6200, - 6400, - 6600, - 6800, - 7000, - 7200 - ], - "fill": "tozeroy", - "mode": "lines" - } - ], - "layout": { - "title": "Monthly Sales Volume Growth", - "xaxis": { - "title": "Month" + "data": [ + { + "type": "scatter", + "mode": "lines+markers", + "x": [ + "\u064a\u0646\u0627\u064a\u0631", + "\u0641\u0628\u0631\u0627\u064a\u0631", + "\u0645\u0627\u0631\u0633", + "\u0623\u0628\u0631\u064a\u0644", + "\u0645\u0627\u064a\u0648", + "\u064a\u0648\u0646\u064a\u0648", + "\u064a\u0648\u0644\u064a\u0648", + "\u0623\u063a\u0633\u0637\u0633", + "\u0633\u0628\u062a\u0645\u0628\u0631", + "\u0623\u0643\u062a\u0648\u0628\u0631", + "\u0646\u0648\u0641\u0645\u0628\u0631", + "\u062f\u064a\u0633\u0645\u0628\u0631" + ], + "y": [ + 85, + 80, + 90, + 95, + 100, + 110, + 105, + 115, + 120, + 125, + 130, + 140 + ], + "name": "\u0645\u062a\u0648\u0633\u0637 \u0627\u0644\u0639\u0645\u0631 \u0627\u0644\u062a\u0634\u063a\u064a\u0644\u064a", + "line": { + "color": "blue" + }, + "marker": { + "symbol": "circle", + "size": 10 + } + }, + { + "type": "scatter", + "mode": "lines+markers", + "x": [ + "\u064a\u0646\u0627\u064a\u0631", + "\u0641\u0628\u0631\u0627\u064a\u0631", + "\u0645\u0627\u0631\u0633", + "\u0623\u0628\u0631\u064a\u0644", + "\u0645\u0627\u064a\u0648", + "\u064a\u0648\u0646\u064a\u0648", + "\u064a\u0648\u0644\u064a\u0648", + "\u0623\u063a\u0633\u0637\u0633", + "\u0633\u0628\u062a\u0645\u0628\u0631", + "\u0623\u0643\u062a\u0648\u0628\u0631", + "\u0646\u0648\u0641\u0645\u0628\u0631", + "\u062f\u064a\u0633\u0645\u0628\u0631" + ], + "y": [ + 5, + 10, + 7, + 6, + 8, + 9, + 7, + 5, + 6, + 4, + 3, + 2 + ], + "name": "\u0639\u062f\u062f \u062d\u0627\u0644\u0627\u062a \u0627\u0644\u062a\u0639\u0637\u0644", + "line": { + "color": "red" + }, + "marker": { + "symbol": "diamond", + "size": 10 + } + } + ], + "layout": { + "title": "\u062a\u0646\u0628\u0648\u0621 \u0627\u0644\u0645\u062f\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644\u064a\u0629 \u0648 \u062d\u0627\u0644\u0627\u062a \u0627\u0644\u062a\u0639\u0637\u0644 \u0627\u0644\u0633\u0646\u0648\u064a\u0629", + "xaxis": { + "title": "\u0627\u0644\u0634\u0647\u0631" + }, + "yaxis": { + "title": "\u0627\u0644\u0642\u064a\u0645\u0629" + }, + "yaxis2": { + "title": "\u0639\u062f\u062f \u062d\u0627\u0644\u0627\u062a \u0627\u0644\u062a\u0639\u0637\u0644", + "overlaying": "y", + "side": "right" + } }, - "yaxis": { - "title": "Sales Volume" - } - }, - "id": 1 + "id": 282 } \ No newline at end of file diff --git a/apps/plotly_examples/tests/test-matrix.ts b/apps/plotly_examples/tests/test-matrix.ts index 182054661d..0c88adfe5e 100644 --- a/apps/plotly_examples/tests/test-matrix.ts +++ b/apps/plotly_examples/tests/test-matrix.ts @@ -1,7 +1,7 @@ const startExampleTestIndex = 0; -export const totalChartExamplesCount = 944; -const startExampleTestIndexLocalization = 377; -const endExampleTestIndexLocalization = 569; +export const totalChartExamplesCount = 1; +const startExampleTestIndexLocalization = 0; +const endExampleTestIndexLocalization = 0; export const chartsListWithErrors = []; From 977718179b0de51899bd1b85be0bd1db0f6fbc5a Mon Sep 17 00:00:00 2001 From: Anush Gupta <74965306+Anush2303@users.noreply.github.com> Date: Thu, 4 Sep 2025 14:50:02 +0000 Subject: [PATCH 2/2] add negative values --- apps/plotly_examples/src/data/data_001.json | 26 ++------------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/apps/plotly_examples/src/data/data_001.json b/apps/plotly_examples/src/data/data_001.json index 01fdeb1865..572b1b9453 100644 --- a/apps/plotly_examples/src/data/data_001.json +++ b/apps/plotly_examples/src/data/data_001.json @@ -18,18 +18,7 @@ "\u062f\u064a\u0633\u0645\u0628\u0631" ], "y": [ - 85, - 80, - 90, - 95, - 100, - 110, - 105, - 115, - 120, - 125, - 130, - 140 + 85, -80, 90, 95, 100, -110, 105, -115, 120, -125, 130, 140 ], "name": "\u0645\u062a\u0648\u0633\u0637 \u0627\u0644\u0639\u0645\u0631 \u0627\u0644\u062a\u0634\u063a\u064a\u0644\u064a", "line": { @@ -58,18 +47,7 @@ "\u062f\u064a\u0633\u0645\u0628\u0631" ], "y": [ - 5, - 10, - 7, - 6, - 8, - 9, - 7, - 5, - 6, - 4, - 3, - 2 + 5, 10, -7, 6, 8, 9, 7, -5, 6, 4, 3, 2 ], "name": "\u0639\u062f\u062f \u062d\u0627\u0644\u0627\u062a \u0627\u0644\u062a\u0639\u0637\u0644", "line": {