-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stacked line charts broken in 2.1.2 #730
Comments
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 Code
|
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 #728 (comment), 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. |
I found that I was being impatient with the download button and had to wait a few seconds before pressing the download button.
|
I do have 2.0.4 now:
|
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 #728 (comment) 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. |
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 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 This actually does seem related to using
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 |
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 Click here to expand the configtype: custom:apexcharts-card
apex_config:
yaxis:
- show: true
decimalsInFloat: false
opposite: true
min: 0
stepSize: 100
seriesName: '🏠'
- seriesName: '🏠'
show: false
chart:
stackOnlyBar: false
height: 600px
type: area
legend:
width: 100%
inverseOrder: true
position: bottom
itemMargin:
horizontal: 15
vertical: 5
markers:
radius: 1
height: 14
width: 6
offsetY: 4
stacked: true
cache: false
graph_span: 30m
update_interval: 30s
header:
floating: true
show: true
show_states: true
all_series_config:
stroke_width: 1
opacity: 1
type: area
float_precision: 0
show:
in_header: false
fill_raw: last
group_by:
func: max
duration: 1m
series:
- entity: sensor.eagle_200_meter_power_demand
type: line
stroke_width: 2
color: '#A55'
name: '🏠'
yaxis_id: '1'
show:
legend_value: false
in_header: raw
extremas: true
- entity: sensor.all_standby_power
name: '💤'
- entity: sensor.nelson_energy_power
name: 🐁⚡
- entity: sensor.fraser_energy_power
name: 🦊⚡
- entity: sensor.rhine_energy_power
name: 🌿🐱⚡
- entity: sensor.thelon_energy_power
name: 🛜
- entity: sensor.shelly_rubicon_power
name: 📺
- entity: sensor.shelly_orinoco_power
name: 🛠️
- entity: sensor.all_lights_power
name: 💡
- entity: sensor.yangtzeekiang_energy_power
name: 🍔❄
- entity: sensor.colorado_energy_power
name: 💦👕
- entity: sensor.riogrande_energy_power
name: 💦🍽️
- entity: sensor.evse_dryer_total_power
name: 🚓
- entity: sensor.fan_power
name: ✇❄ |
@RomRider any chances of fixing this one, please? |
+1 on this issue, working with v2.0.4 now. |
I modified my code and it now works with stacked on v2.1.2
|
I found that a workaround that works for me with |
Thanks so much ! That worked fine ! |
@RomRider |
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:
Version 2.1.2 is wrong:
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
The text was updated successfully, but these errors were encountered: