1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-22 06:39:39 +02:00

Improve chart performance and gapfilling (#2306)
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

This commit is contained in:
Zach Gollwitzer 2025-05-25 20:40:18 -04:00 committed by GitHub
parent e1b81ef879
commit 6e202bd7ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 382 additions and 196 deletions

View file

@ -55,6 +55,7 @@ export default class extends Controller {
this._normalDataPoints = (this.dataValue.values || []).map((d) => ({
date: parseLocalDate(d.date),
date_formatted: d.date_formatted,
value: d.value,
trend: d.trend,
}));
}
@ -415,7 +416,7 @@ export default class extends Controller {
}
_getDatumValue = (datum) => {
return this._extractNumericValue(datum.trend.current);
return this._extractNumericValue(datum.value);
};
_extractNumericValue = (numeric) => {