Open WPettersson opened 4 months ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.
Hmm, this repo is feeling abandoned. No commits this year, loads of issues going closed as stale. Anyone know of either a fork, or alternative?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.
Checklist
dev
branchIs your feature request related to a problem? Please describe.
I currently use
min: ~17
andmax: ~22
for temperatures in my house, which for most days gives a good graph of the temperature. However, when the indoor temperature drops below 17 (usually if I'm away and heating is off) or goes above 22 (summers), the line graph sits on the top or bottom of the chart. I would prefer for there to always be a 0.5 gap above/below. I can achieve this withmin: |-0.5|
andmax: |+0.5|
but then the soft boundaries are lost.Describe the solution you'd like
A new type,
minmax_type.SOFTABSOLUTE
, could be added. It could be specified withmin: ~17|-0.5|
andmax: ~22|+0.5|
. Parsing these shouldn't be hard, adding an extraif (value.startsWith('~') && value.endsWith('|')
before the if statement at https://github.com/RomRider/apexcharts-card/blob/1b63c0f53fadde489179f7c9e08d700daeb4215e/src/apexcharts-card.ts#L1264 (or running a regex match). It would mean thatyaxis.min
andyaxis.max
couldn't just be a number though, but possibly an array or something.Describe alternatives you've considered
I haven't got an alternative solutions in the current apexcharts-card that I've tried.
Additional context