jonasbkarlsson / ev_smart_charging

Electric vehicle smart charging for Home Assistant.
MIT License
139 stars 18 forks source link

Height of black bar #258

Closed RogMoe closed 2 months ago

RogMoe commented 2 months ago

I just installed EVSC and I like it! Adjusted little details to suit my country settings and all okay now. There's however one thing I don't understand. What does the height of the black bar indicate? In my case it show "0,24" (no units whatsoever)

Maybe I'm missing something here, but wouldn't it be more pleasing to the eye to have the black bar follow the price-graph? I'm not that good with Apexcharts to accomplish this myself...

Thx for your reply.

SEVC_1 SEVC_2

Just in case; here's my code.

`type: custom:apexcharts-card now: show: true label: Now color: blue locale: en header: show: true title: Smart Charging show_states: true graph_span: 2d yaxis:

jonasbkarlsson commented 2 months ago

The height of the bar has no meaning. It is set to 75% of the highest price to easily be able to generate the Apexchart in this particular way. When the lowest price is close to zero, it would be difficult to see the charging schedule with your suggestion. So therefore the current Apexchart is given as an example in the documentation.

RogMoe commented 2 months ago

Okay, this makes sense!