From 4c7ae51df8dbaf9b96100423da118ef6a98a8a02 Mon Sep 17 00:00:00 2001 From: Aniket Kumar Date: Sun, 1 Oct 2023 15:21:04 +0530 Subject: [PATCH 1/2] test --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d8b5c41..94eea69 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@

CodeUtsava 7.0

- The official repository for the website of CodeUtsava 7.0 + The Official Repository for the website of CodeUtsava 7.0

View Live From cf563fc42aa91fd0f11991d39aa6ef7057cee983 Mon Sep 17 00:00:00 2001 From: Aniket Kumar Date: Mon, 2 Oct 2023 13:56:29 +0530 Subject: [PATCH 2/2] decreased font size of chart for mobile view --- src/pages/home/sections/section14/Section14.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/home/sections/section14/Section14.js b/src/pages/home/sections/section14/Section14.js index 393ca01..f1b8036 100644 --- a/src/pages/home/sections/section14/Section14.js +++ b/src/pages/home/sections/section14/Section14.js @@ -45,11 +45,21 @@ const Section14 = () => { ], }); + const getFontSize = () => { + const fontSize = window.innerWidth <= 767 ? "8px" : "14px"; + return fontSize; + }; + const optionsWithoutToolbar = { ...state.options, toolbar: { show: false, }, + dataLabels: { + style: { + fontSize: getFontSize(), + }, + }, }; const [counterOn, setCounterOn] = useState(false); @@ -93,7 +103,7 @@ const Section14 = () => {