Hi all,
is there a way to hide only the entity-name of a apexchart-card? States should continue to be displayed (in this case °C)? I just can’t find a solution, sorry. Thanks for help…
It seems that this is not possible, what a pity. Perhaps it will be integrated at some point.
use should use the seach function in this Forum, before asking simple questions
Hi boheme61,
thank you for the warm welcome here in the forum. I know how to behave in public forums.
How many times do you think I’ve read through the apexcharts-card manual? I haven’t found anything that would help me. The search in the forum didn’t lead to any useful results either. Otherwise I wouldn’t have asked.
Just forget it, I withdraw my question.
Peter
The extensive documentation gives series show options, with the the in_header option and the name_in_header, which maybe what you want.
I can’t test this at the moment but I think it turns off the series entity name in the header
https://github.com/RomRider/apexcharts-card#series-show-options
You’re a busybody, nothing more. I posted a very specific question hoping to get some good info. Logically, I used the forum’s search function and, in my opinion, read more than enough instructions and howtos. I would have expected the community to stick together and help a newcomer in particular. As you wrote so beautifully: “We are volunteering our free time to help others.” That’s exactly what I would have hoped for.
I can manage just fine on my own. There are more people who are willing to help. You’re just being pompous, that’s all.
Peter
Search fo “apexcharts” gives the 5th result to the huge dedicated apexcharts-card thread.
I wonder is there any sense to create a new post for some custom card instead of asking in the thread where your question could be noticed by plenty of apexcharts users. Not to mention to avoid a decluttering by “all solutions are in one place”.
Each popular custom card has it’s own dedicated thread.
No reason to get offended.
after reading Biscuit’s answer (thank you, Biscuit), following the link, and tinkering a bit, adding name_in_header and setting it to false worked for me
There was indeed a point to create a separate post on the questions as I have the same question and was able to google-find this post because of that. Thx, Caddy
name_in_header: false indeed hides the entity name in apex charts. Great going.
Are you really attacking a post from 5 months ago? You have found a resolution, that’s a positive. I would suggest taking the high road and share your information in a positive manner.
I’d also suggest checking out the new Cookbook that is under construction, constructive criticism is welcome.
Coming back on this post more than 1 year after, sorry for that…but it seems that I can’t find a way to hide an entity name in the header with just “name_in_header: false” when there is more than ONE serie in the chart.
As soon as there are two or more series, even if I put “name_in_header: false” in the “show” section of each serie (or in “all_series_config”), I end up with all series names in the header. Even putting “show: false” in “header:” still leaves me up with the series names…
Okay, It may sound a bit silly to display multiple series without a legend telling which serie is what but, well, I end up imagining doing silly things, sometimes…
My current attempt:
type: custom:apexcharts-card
graph_span: 24h
all_series_config:
stroke_width: 2
type: line
header:
show: false
show_states: false
yaxis:
- show: false
layout: minimal
series:
- entity: sensor.zlinky_mqtt_sinsts
color: blue
show:
name_in_header: false
- entity: sensor.zlinky_mqtt_sinsts1
color: blue
show:
name_in_header: false
- entity: sensor.zlinky_mqtt_sinsts2
color: red
show:
name_in_header: false
- entity: sensor.zlinky_mqtt_sinsts3
color: cyan
show:
name_in_header: false
There are four settings (AFAIK) that control the graph header and what is shown in it.
At the top level
header:
show: true
show_states: true
Header show
turns the entire header on / off, and show_states
turns the state value inclusion in the header on / off (ie if false, you just get the header title)
Note: turning off the header makes the show_states and everything else unnecessary
No header at all →
Header but no states →
At the individual series level
- entity: sensor.octopus_monthly_costs
show:
in_header: true
name_in_header: true
Series show: in_header
turns the individual series display in the header on / off
name_in_header
turns on / off the name under the series state value
Note: the name_in_header
does nothing unless the in_header
is true
, so just adding this setting without the in_header
setting will achieve nothing.
Turn off just the name for just one header state value →
Turn off the header state for just one series →
The documentation does state that:
name_in_header … Only valid if
in_header: true
and
in_header … If
show_states
is enabled,
so these individual settings cascade and some settings cannot operate on their own!