Fix distorted tooltip (#1088)
* Fix distorted tooltip * Update changelog
This commit is contained in:
parent
9923074e04
commit
1866e26c1d
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed the distorted tooltip in the performance chart on the home page
|
||||||
|
|
||||||
## 1.170.0 - 19.07.2022
|
## 1.170.0 - 19.07.2022
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -2,19 +2,21 @@
|
|||||||
class="align-items-center container d-flex flex-column h-100 justify-content-center overview p-0 position-relative"
|
class="align-items-center container d-flex flex-column h-100 justify-content-center overview p-0 position-relative"
|
||||||
>
|
>
|
||||||
<div class="row w-100">
|
<div class="row w-100">
|
||||||
<div class="chart-container col">
|
<div class="col p-0">
|
||||||
<gf-line-chart
|
<div class="chart-container mx-auto position-relative">
|
||||||
class="position-absolute"
|
<gf-line-chart
|
||||||
symbol="Performance"
|
class="position-absolute"
|
||||||
[currency]="user?.settings?.baseCurrency"
|
symbol="Performance"
|
||||||
[historicalDataItems]="historicalDataItems"
|
[currency]="user?.settings?.baseCurrency"
|
||||||
[locale]="user?.settings?.locale"
|
[historicalDataItems]="historicalDataItems"
|
||||||
[ngClass]="{ 'pr-3': deviceType === 'mobile' }"
|
[locale]="user?.settings?.locale"
|
||||||
[showGradient]="true"
|
[ngClass]="{ 'pr-3': deviceType === 'mobile' }"
|
||||||
[showLoader]="false"
|
[showGradient]="true"
|
||||||
[showXAxis]="false"
|
[showLoader]="false"
|
||||||
[showYAxis]="false"
|
[showXAxis]="false"
|
||||||
></gf-line-chart>
|
[showYAxis]="false"
|
||||||
|
></gf-line-chart>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
*ngIf="hasPermissionToCreateOrder && historicalDataItems?.length === 0"
|
*ngIf="hasPermissionToCreateOrder && historicalDataItems?.length === 0"
|
||||||
class="align-items-center d-flex h-100 justify-content-center w-100"
|
class="align-items-center d-flex h-100 justify-content-center w-100"
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
|
|
||||||
.chart-container {
|
.chart-container {
|
||||||
aspect-ratio: 16 / 9;
|
aspect-ratio: 16 / 9;
|
||||||
max-height: 50vh;
|
height: auto;
|
||||||
|
max-width: 67rem;
|
||||||
|
|
||||||
// Fallback for aspect-ratio (using padding hack)
|
// Fallback for aspect-ratio (using padding hack)
|
||||||
@supports not (aspect-ratio: 16 / 9) {
|
@supports not (aspect-ratio: 16 / 9) {
|
||||||
|
@ -8,6 +8,5 @@
|
|||||||
></ngx-skeleton-loader>
|
></ngx-skeleton-loader>
|
||||||
<canvas
|
<canvas
|
||||||
#chartCanvas
|
#chartCanvas
|
||||||
class="h-100"
|
|
||||||
[ngStyle]="{ display: isLoading ? 'none' : 'block' }"
|
[ngStyle]="{ display: isLoading ? 'none' : 'block' }"
|
||||||
></canvas>
|
></canvas>
|
||||||
|
@ -175,6 +175,7 @@ export class LineChartComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|||||||
data,
|
data,
|
||||||
options: {
|
options: {
|
||||||
animation: false,
|
animation: false,
|
||||||
|
aspectRatio: 16 / 9,
|
||||||
elements: {
|
elements: {
|
||||||
point: {
|
point: {
|
||||||
hoverBackgroundColor: getBackgroundColor(),
|
hoverBackgroundColor: getBackgroundColor(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user