I am trying to create a donut chart based off some local csvfiles, but I am not able to show each entry (“Name”) with its corresponding value (“Wert”), instead, it just uses the last entry in my local json file as a series value.
For a donut chart, is there a way to create a custom series for each “Name” it finds in the local json? So is there a dynamic way to add as many series as it finds in the json?
Hello
I was looking an implemetation for this also, but apexcharts only can use different entities for pie as far as I know.
Perhaps a Feature Request for apexchart to use values of the same sensor??
Meanwhile, I have configured some sensors to cover this.
Perhaps not the best one or the final one. But it could be an option
Here is the link with the implementation:
Is there a way to make the graph using the full card, having no axis and name as well as state (center and a big font) on the top and above the graph?
Similar to the mock shown below?
I know the mini-graph-card, but there the graph is only a very small part of the card.
Looking for some help here with the y-axis. The value does not correspond to the value of the combined values for both airco’s, it tops off at 16. Looking for some advise where I am going wrong with my config.
type: custom:apexcharts-card
stacked: true
span:
end: day
header:
title: Airco Energy Consumption
show: true
colorize_states: true
graph_span: 7d
apex_config:
chart:
type: area
xaxis:
labels:
format: ddd
yaxis:
- id: first
decimals: 0
apex_config:
tickAmount: 4
forceNiceScale: true
- id: second
opposite: true
decimals: 0
apex_config:
tickAmount: 4
forceNiceScale: true
series:
- entity: sensor.living_room_energy_consumption
name: Daikin
yaxis_id: first
type: column
show:
datalabels: true
statistics:
type: sum
period: hour
group_by:
func: diff
duration: 24h
- entity: sensor.daily_energy_airco_upstairs_2
name: Gree
yaxis_id: first
type: column
show:
datalabels: true
statistics:
type: sum
period: hour
group_by:
func: diff
duration: 24h
- entity: sensor.average_daily_outdoor_temp
name: Average temperature
yaxis_id: second
type: line
show:
datalabels: true
group_by:
func: min
duration: 24h
does anyone have an idea, how I could align the columns correctly?
I think with this data generator I am just adding the start time, but no end time, so the columns are centered exactly at the hour:
If I look at the history graph, the measurements seem to be ‘on’ the hour so why would you want it to show ‘next’ to the hour, isn’t that twisting the data? I also donot know why you interpret the column to be a period but that is a different topic. Simple solution (?) would be to add a small offset to push it left or right as this seems stable ‘on-the-hour’