diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f64e93f..e2524f6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Harmonized the axis style of charts - Removed the environment variable `ENABLE_FEATURE_CUSTOM_SYMBOLS` ## 1.242.0 - 2023-03-04 diff --git a/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.html b/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.html index f7204d02..dc64ed12 100644 --- a/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.html +++ b/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.html @@ -1,6 +1,7 @@
{ + if ( + tick.value === 0 || + tick.value === scale.max || + tick.value === scale.min + ) { + return `rgba(${getTextColor(this.colorScheme)}, 0.1)`; + } + + return 'transparent'; + } }, position: 'right', ticks: { diff --git a/libs/ui/src/lib/line-chart/line-chart.component.ts b/libs/ui/src/lib/line-chart/line-chart.component.ts index 4be8fd12..be43f939 100644 --- a/libs/ui/src/lib/line-chart/line-chart.component.ts +++ b/libs/ui/src/lib/line-chart/line-chart.component.ts @@ -217,7 +217,6 @@ export class LineChartComponent implements AfterViewInit, OnChanges, OnDestroy { }, display: this.showXAxis, grid: { - color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`, display: false }, time: { @@ -228,12 +227,23 @@ export class LineChartComponent implements AfterViewInit, OnChanges, OnDestroy { }, y: { border: { - color: `rgba(${getTextColor(this.colorScheme)}, 0.1)` + width: 0 }, display: this.showYAxis, grid: { - color: `rgba(${getTextColor(this.colorScheme)}, 0.8)`, - display: false + color: ({ scale, tick }) => { + if ( + tick.value === 0 || + tick.value === scale.max || + tick.value === scale.min || + tick.value === this.yMax || + tick.value === this.yMin + ) { + return `rgba(${getTextColor(this.colorScheme)}, 0.1)`; + } + + return 'transparent'; + } }, max: this.yMax, min: this.yMin,