We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e919b97 commit 63c0f49Copy full SHA for 63c0f49
src/parse-config/defaults.ts
@@ -42,7 +42,7 @@ const defaultEntityOptional = {
42
const internal = getFromConfig(`entities.${i}.internal`);
43
if (!internal && !units.includes(unit)) units.push(unit);
44
}
45
- const yaxis_idx = units.length;
+ const yaxis_idx = units.indexOf(getFromConfig(`.unit_of_measurement`)) + 1;
46
return "y" + (yaxis_idx === 1 ? "" : yaxis_idx);
47
},
48
};
0 commit comments