You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[*] I updated the card to the latest version available
[*] I cleared the cache of my browser
[*] I verified that I'm really running the latest version in my browser console
[*] I checked if there is another issue opened with the same problem
Describe the bug
When specifying multiple fill types, the fill type is not applied correctly if the graph contains columns and either lines or areas. However, the fill types are applied correctly if the graph contains no columns or only columns. Based on my testing, it seems like what happens is that for columns, the application of the fill types resets back to the beginning of the list instead of picking up the next type on the list which is the expected behaviour (and the behaviour of all the other plot types).
Version of the card
Version: 2.1.2
To Reproduce
Here is a slightly modified version of the default card to demonstrate the issue. This should produce a line with solid fill and columns with gradient fill.
type: custom:apexcharts-cardheader:
show: truetitle: ApexCharts-Cardshow_states: truecolorize_states: trueapex_config:
fill:
type:
- solid
- gradientgradient:
type: verticalshadeIntensity: 0opacityFrom: 1opacityTo: 0.1stops:
- 0
- 90
- 100series:
- entity: sensor.adguard_home_cpu_percenttype: linedata_generator: | // REMOVE ME const now = new Date(); const data = []; for(let i = 0; i <= 24; i++) { data.push([now.getTime() - i * 1000 * 60 * 60, Math.floor((Math.random() * 10) + 1)]) } return data.reverse();
- entity: sensor.wireguard_cpu_percenttype: columndata_generator: | // REMOVE ME const now = new Date(); const data = []; for(let i = 0; i <= 24; i++) { data.push([now.getTime() - i * 1000 * 60 * 60, Math.floor((Math.random() * 10) + 1)]) } return data.reverse();
Screenshots
However, the above code produces a plot with no gradient applied to the columns:
Changing type: column to type: area for the second entity produces exactly the expected result:
Expected behavior
The columns should have gradient applied.
Desktop (please complete the following information):
Browser: Safari
Version: 17.6
The text was updated successfully, but these errors were encountered:
Checklist
Describe the bug
When specifying multiple fill types, the fill type is not applied correctly if the graph contains columns and either lines or areas. However, the fill types are applied correctly if the graph contains no columns or only columns. Based on my testing, it seems like what happens is that for columns, the application of the fill types resets back to the beginning of the list instead of picking up the next type on the list which is the expected behaviour (and the behaviour of all the other plot types).
Version of the card
Version: 2.1.2
To Reproduce
Here is a slightly modified version of the default card to demonstrate the issue. This should produce a line with solid fill and columns with gradient fill.
Screenshots
However, the above code produces a plot with no gradient applied to the columns:
Changing
type: column
totype: area
for the second entity produces exactly the expected result:Expected behavior
The columns should have gradient applied.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: