Open marcelhoogantink opened 1 month ago
Same for type: column
chart:
Same for
type: column
chart:
Same here!
Until I fix it in the code, you can fix it with:
apex_config:
chart:
stackOnlyBar: false
Until I fix it in the code, you can fix it with:
apex_config: chart: stackOnlyBar: false
Thanks for your reply, I tried it, but it did not work:
rolled back to 2.0.4.
Until I fix it in the code, you can fix it with:
apex_config: chart: stackOnlyBar: false
sorry, this doesn't work me either
Same issue here
2.0.4
2.1.0 and 2.1.2
Code
card:
type: custom:apexcharts-card
stacked: true
graph_span: 1d
span:
offset: ${offset}
header:
show: false
title: Total Power
series:
- entity: sensor.power_production
type: column
name: Produced
color: '#01B4DE'
group_by:
func: avg
duration: 5min
- entity: sensor.power_consumption
transform: return x *-1 ;
type: column
name: Consumed
color: '#F37320'
group_by:
func: avg
duration: 5min
- entity: sensor.power_net
type: column
name: Imported(+)/Exported(-)
color: '#545456'
group_by:
func: avg
duration: 5min
yaxis:
- min: -7000
max: 7000
decimals: 0
The strange thing for me is that I can't even make it work again by rolling back to v2.0.4.
As I replied in https://github.com/RomRider/apexcharts-card/issues/728#issuecomment-2222610262, it works in a newer version when you delete the y-axis block in yaml but this workaround is not possible to use every time. At least rolling back to 2.0.4 worked for me well.
The strange thing for me is that I can't even make it work again by rolling back to v2.0.4.
I found that I was being impatient with the download button and had to wait a few seconds before pressing the download button. You can confirm what version you have by doing this in the terminal
cat /homeassistant/www/community/apexcharts-card/apexcharts-card.js | grep -o v2.0.4
v2.0.4
I do have 2.0.4 now:
β ~ cat /homeassistant/www/community/apexcharts-card/apexcharts-card.js | grep -o v2.0.4
v2.0.4
I found that removing the yaxis: block made the stacking work again with the newer versions 2.1.0 onwards.
Originally posted by @wejto in https://github.com/RomRider/apexcharts-card/issues/728#issuecomment-2222610262
Obviously the yaxis block is desired by me for setting the graph scale and how many decimal points i prefer to display, so removing the yaxis block is a regrettable solution for me.
Until I fix it in the code, you can fix it with:
apex_config: chart: stackOnlyBar: false
This did work for me, added near the top, not sure if it's not working for others as it was added at the bottom?
Until I fix it in the code, you can fix it with:
apex_config: chart: stackOnlyBar: false
This did work for me, added near the top, not sure if it's not working for others as it was added at the bottom?
Tried this on multiple different rows with no difference unfortunately.
Ah - I spent ages figuring out the brush
feature and was thinking "gee, I've really nailed this view!" - then I saw that my stacked area graph had broken. First up, I thought it must have been some change I'd made when implementing brush
.
So after finding this issue, I see that there's a bug using stacked. So this is where it gets interesting for me. With the same code, if I roll back to v2.0.4
, this is what I get:
This actually does seem related to using brush
because if I make this change:
experimental:
brush: false
Then my stacked graph shows correctly - just no interactivity. (I've also changed the span just to help show detail int he screenshot)
So i don't know if these bugs are related. Does brush
clash with [stacked](stacked: true)
? Will fixing this stacked
issue also solve the display issues when brush
is enabled?
Removing the yaxis block works as a workaround⦠but this is not a viable solution in the end
I was able to work around this by moving the y-axis config into the apex_charts
section..
Checklist
Describe the bug option
stacked: true
does not work anymore in 2.1.2, it's OK in 2.0.4Version of the card Version: 2.1.2
To Reproduce This is the configuration I used:
Screenshots Version 2.0.4 is OK:![ApexChart_2_0_4_stacked_line_graph](https://github.com/user-attachments/assets/338fa22b-87c5-4c13-ba85-007978260606)
Version 2.1.2 is wrong:![ApexChart_2_1_2_stacked_line_graph](https://github.com/user-attachments/assets/72e215fb-f666-45de-ad88-a13adf11cf3e)
Expected behavior Graph should be stacked also in 2.1.2
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context