Fix chart bug
This commit is contained in:
parent
bf654c6f42
commit
59a32e9352
3 changed files with 38 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ export default abstract class Chart<T extends Record<string, any>> {
|
|||
|
||||
for (const [k, v] of Object.entries(columns)) {
|
||||
if (v > 0) query[k] = () => `"${k}" + ${v}`;
|
||||
if (v < 0) query[k] = () => `"${k}" - ${v}`;
|
||||
if (v < 0) query[k] = () => `"${k}" - ${Math.abs(v)}`;
|
||||
}
|
||||
|
||||
return query;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue