From b644d1f0d93e77585a8da5913f903a6262d95d11 Mon Sep 17 00:00:00 2001 From: wahyun Date: Thu, 20 Jun 2024 20:32:54 +0700 Subject: [PATCH] fix: update color font chart --- src/components/CardDashboard/CardDashboard.js | 52 +++++++++---------- src/views/Dashboard/DashboardBOD.js | 4 +- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/components/CardDashboard/CardDashboard.js b/src/components/CardDashboard/CardDashboard.js index e507176..c4ef205 100644 --- a/src/components/CardDashboard/CardDashboard.js +++ b/src/components/CardDashboard/CardDashboard.js @@ -199,7 +199,7 @@ const optionsScheduleHealthPerDivision = { } }, datalabels: { - color: '#FFFFFF' + color: '#000' } } } @@ -215,30 +215,30 @@ export const ContentLoaderChart = ({ type }) => { backgroundColor="#f3f3f3" foregroundColor="#ecebeb" > - {/* - - - - - - - - - - - - - - + {/* + + + + + + + + + + + + + + */} - {/* - - - - - - - + {/* + + + + + + + */} @@ -288,7 +288,7 @@ export const ContentLoaderChart = ({ type }) => { } } -// export const FullCard = +// export const FullCard = export const CardDashboard = ({ title, subtitle, chartType, chartData, chartOption, isReady }) => { let chart = null; @@ -387,4 +387,4 @@ export const NoDataChart = ({ message }) => { {message ? message : "No Data Available"} ) -} \ No newline at end of file +} diff --git a/src/views/Dashboard/DashboardBOD.js b/src/views/Dashboard/DashboardBOD.js index bc47410..b7a8687 100644 --- a/src/views/Dashboard/DashboardBOD.js +++ b/src/views/Dashboard/DashboardBOD.js @@ -492,7 +492,7 @@ const DashboardBOD = (props) => { display: false, }, datalabels: { - color: '#FFFFFF', + color: '#000', formatter: function (value, context) { return value ? toRupiah(value, { useUnit: 'jt' }) : 0; } @@ -767,7 +767,7 @@ const DashboardBOD = (props) => { display: false, }, datalabels: { - color: '#FFFFFF' + color: '#000' } } }} -- 2.25.1