mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
Improve chart performance and gapfilling (#2306)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user