I’ve just build a mock chart to validate the theory:
data is [1, 2, null, 2, 1]
. As you can see between 2
and null
there’s no line (the red line is the one I added manually :D). HA would have drawn the red line there, ApexCharts doesn’t
yeah… hmm. The issue I have is they read the fuel price via an API and it randomly assigns sensor names when there is more than one in the same area so I can test for that v=crap with a template sensor to fix it all up. I can maybe use a different sensor name but filling in the null with a line would work too…
I had planned to add that feature anyway, so I’m gonna work on it next
Right now you can only fill when using group_by
which is not covering all the use cases (like the one you have)!
Please check the latest beta (1.5.0-dev.1), you’ll want to add fill_raw: last
to all the entries in the series.
huh?
series:
- entity: sensor.syd17310
fill_raw: last
- entity: sensor.syd18253
fill_raw: last
- entity: sensor.syd18424
fill_raw: last
- entity: sensor.syd2436
fill_raw: last
- entity: sensor.syd643
fill_raw: last
- entity: sensor.syd663
fill_raw: last
??
Like that:
series:
- entity: sensor.syd17310
fill_raw: last
- entity: sensor.syd18253
fill_raw: last
- entity: sensor.syd18424
fill_raw: last
- entity: sensor.syd2436
fill_raw: last
- entity: sensor.syd643
fill_raw: last
- entity: sensor.syd663
fill_raw: last
bingo!!
Great
Hey folks, little ask
Could you please review this PR: https://github.com/hacs/default/pull/790
And approve it if you can (it’s not about merging, but just approving), it will help get it by default into HACS Thanks
Is it possible to get this gauge with this card?
Thanks for a great card. I am already using it to show energy price now and the next day. Showing data into the future has always been difficult with HA, but it was easy with this new card.
A question: Is it possible to use group_by together with radialbar, pie and donut?
Yes, check the code below the image, you’ll have the settings required to be put in apex_config
to achieve this.
Yes, it works with group_by
It will group_by
and just display the last state of the last group.
Thanks for your reply to me and also everyone else here asking for tips/help.
I have 0 experience in editing card config files. So i have some beginner questions.
Do i add this to the config or replace the code? And do i replace the whole code or just the part wich is under the picture?
If i replace, does that mean i mess up other diffrent charts?
Also, the apex_config is not in the www folder, is it placed somewhere else?
Edit: I think i found out, Apex_comfig in the card code right? /facepalm
You don’t need to edit anything in the code nor add folders on the disk. This is config to put in the card config (in the yaml) in the apex_config
section
Yeah, i just figured it out haha
But 1 more thing. i see alot of ppl here who post code have this “- type:” format with a few spaces in the beginning, But in my card yaml its always “type:” at the very beginning. That makes it hard to copy code, why is it diffrent? Are some users using older version of HA or something? Do you know any “coverter” from old yaml to new? It makes it a little hard to copy code as im not so good at coding yam, but i do understad the code, but the challenge is undertanding how many spaces to put infornt of every line.
Sorry for my english and questions lol
Something lilke this (didn’t test):
type: custom:apexcharts-card
series:
- entity: sensor.xyz
- entity: sensor.xyz
apex_charts:
plotOptions:
radialBar:
offsetY: 0
startAngle: 0
endAngle: 270
hollow:
margin: 5,
size: '30%',
background: 'transparent',
image: undefined,
dataLabels:
name:
show: false
value:
show: false
legend:
show: true
floating: true
fontSize: '16px'
position: 'left'
offsetX: 160
offsetY: 15
labels:
useSeriesColors: true
markers:
size: 0
itemMargin:
vertical: 3
Maybe you should then first learn yaml before doing any crazy stuff. It’s not new vs old yaml, it’s all yaml extracted from a specific context.
I’d suggest you read that and learn yaml: https://learnxinyminutes.com/docs/yaml/
I had a typo, updated the initial post:
see the first line: type: custom:apexchart-card
Yeah, im in the process of learning, but i learn best by doing and failing, while asking for pointers on the way.
Ill read up on what you posted, thanks.