Feature/improve performance of chart calculation (#1271)

* Improve performance chart calculation

Co-Authored-By: gizmodus <11334553+gizmodus@users.noreply.github.com>

* Update changelog

Co-Authored-By: gizmodus <11334553+gizmodus@users.noreply.github.com>

* Improve chart tooltip of benchmark comparator

* Update changelog

Co-authored-by: gizmodus <11334553+gizmodus@users.noreply.github.com>
This commit is contained in:
Thomas Kaul
2022-09-20 20:22:01 +02:00
committed by GitHub
parent b68cdaf8ea
commit b1b5689242
6 changed files with 233 additions and 62 deletions

View File

@@ -23,11 +23,7 @@ import {
getTextColor,
parseDate
} from '@ghostfolio/common/helper';
import {
LineChartItem,
UniqueAsset,
User
} from '@ghostfolio/common/interfaces';
import { LineChartItem, User } from '@ghostfolio/common/interfaces';
import { DateRange } from '@ghostfolio/common/types';
import {
Chart,
@@ -215,7 +211,7 @@ export class BenchmarkComparatorComponent implements OnChanges, OnDestroy {
locale: this.locale,
unit: '%'
}),
mode: 'index',
mode: 'x',
position: <unknown>'top',
xAlign: 'center',
yAlign: 'bottom'