diff --git a/packages/polaris-viz/CHANGELOG.md b/packages/polaris-viz/CHANGELOG.md index bb4d52f00..6dd27c47f 100644 --- a/packages/polaris-viz/CHANGELOG.md +++ b/packages/polaris-viz/CHANGELOG.md @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). - +## Unreleased + +### Changed + +- Added an offset to y-axis labels for `` to accommodate variations in font rendering ## [9.17.1] - 2023-11-07 diff --git a/packages/polaris-viz/src/components/LineChart/Chart.tsx b/packages/polaris-viz/src/components/LineChart/Chart.tsx index c1c4adbeb..a4033e962 100644 --- a/packages/polaris-viz/src/components/LineChart/Chart.tsx +++ b/packages/polaris-viz/src/components/LineChart/Chart.tsx @@ -53,6 +53,7 @@ import { import { ChartMargin, ANNOTATIONS_LABELS_OFFSET, + Y_AXIS_LABEL_OFFSET, CROSSHAIR_ID, } from '../../constants'; import {VisuallyHiddenRows} from '../VisuallyHiddenRows'; @@ -316,7 +317,7 @@ export function Chart({