From d8e969d13fce64fd046281636033a31e5b53e9c1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Dec 2023 00:17:19 +0000 Subject: [PATCH 1/2] fix(deps): bump chart.js from 4.4.0 to 4.4.1 Bumps [chart.js](https://github.com/chartjs/Chart.js) from 4.4.0 to 4.4.1. - [Release notes](https://github.com/chartjs/Chart.js/releases) - [Commits](https://github.com/chartjs/Chart.js/compare/v4.4.0...v4.4.1) --- updated-dependencies: - dependency-name: chart.js dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- apps/google-analytics-4/frontend/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/google-analytics-4/frontend/package-lock.json b/apps/google-analytics-4/frontend/package-lock.json index 3822ba9543..bf071e4a3f 100644 --- a/apps/google-analytics-4/frontend/package-lock.json +++ b/apps/google-analytics-4/frontend/package-lock.json @@ -9945,9 +9945,9 @@ } }, "node_modules/chart.js": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.4.0.tgz", - "integrity": "sha512-vQEj6d+z0dcsKLlQvbKIMYFHd3t8W/7L2vfJIbYcfyPcRx92CsHqECpueN8qVGNlKyDcr5wBrYAYKnfu/9Q1hQ==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.4.1.tgz", + "integrity": "sha512-C74QN1bxwV1v2PEujhmKjOZ7iUM4w6BWs23Md/6aOZZSlwMzeCIDGuZay++rBgChYru7/+QFeoQW0fQoP534Dg==", "dependencies": { "@kurkle/color": "^0.3.0" }, From 2eebfcb757426800a141b370aa8c0154a695f90a Mon Sep 17 00:00:00 2001 From: Lisa White Date: Tue, 19 Dec 2023 16:19:03 -0700 Subject: [PATCH 2/2] fix: update chart font weight to number --- .../frontend/src/components/main-app/LineChart/LineChart.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/google-analytics-4/frontend/src/components/main-app/LineChart/LineChart.tsx b/apps/google-analytics-4/frontend/src/components/main-app/LineChart/LineChart.tsx index c5d7e47f2b..c67bbad64b 100644 --- a/apps/google-analytics-4/frontend/src/components/main-app/LineChart/LineChart.tsx +++ b/apps/google-analytics-4/frontend/src/components/main-app/LineChart/LineChart.tsx @@ -22,7 +22,7 @@ const defaultFontSize = parseRemToPxInt(tokens.fontSizeS); ChartJS.defaults.font.size = defaultFontSize; ChartJS.defaults.font.family = tokens.fontStackPrimary; -ChartJS.defaults.font.weight = tokens.fontWeightMedium.toString(); +ChartJS.defaults.font.weight = tokens.fontWeightMedium; ChartJS.defaults.borderColor = tokens.gray200; ChartJS.defaults.datasets.line.borderColor = tokens.colorPrimary; @@ -69,8 +69,7 @@ const LineChart = (props: Props) => { }, bodyFont: { size: defaultFontSize, - // TO:DO once font weight is added to F36, replace with token - weight: '700', + weight: tokens.fontWeightDemiBold, }, displayColors: false, callbacks: {