mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Reduce padding in energy charts and align unit (#24095)
This commit is contained in:
parent
0ae6fa0763
commit
bf962b29af
@ -72,7 +72,10 @@ export function getCommonOptions(
|
||||
yAxis: {
|
||||
type: "value",
|
||||
name: unit,
|
||||
nameGap: 5,
|
||||
nameGap: 2,
|
||||
nameTextStyle: {
|
||||
align: "left",
|
||||
},
|
||||
axisLabel: {
|
||||
formatter: (value: number) => formatNumber(Math.abs(value), locale),
|
||||
},
|
||||
@ -81,10 +84,10 @@ export function getCommonOptions(
|
||||
},
|
||||
},
|
||||
grid: {
|
||||
top: 35,
|
||||
bottom: 10,
|
||||
left: 10,
|
||||
right: 10,
|
||||
top: 15,
|
||||
bottom: 0,
|
||||
left: 1,
|
||||
right: 1,
|
||||
containLabel: true,
|
||||
},
|
||||
tooltip: {
|
||||
|
@ -193,9 +193,10 @@ export class HuiEnergyDevicesDetailGraphCard
|
||||
icon: "circle",
|
||||
},
|
||||
grid: {
|
||||
top: 45,
|
||||
bottom: 0,
|
||||
left: 5,
|
||||
right: 5,
|
||||
left: 1,
|
||||
right: 1,
|
||||
containLabel: true,
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user