yeah, partially my bad. it’s yaxis.
With yaxis it might be tricky. It might depends on number of y/axes. If there are more than one you may need to set attributes it for each one separatelly - at least try it. see my mentioned example.
If still not work provide complete code of your card.
Now I’m looking at my code and there is no disabling lines for yaxis… maybe other options do that
anyway if you copy apex_config from my source code it has to work. I did that trying all options from apex configuration. some are unnecessary others are.
That is disabling the dotted horizontal lines. Sadly, there doesn’t seem to be any available styling option, like solid or color. So it’s just on or of (for now).
There is:
Could somebody help me fix this problem ?
I have 2 entities, but for some reason for the line chart it adds an extra value, which is always the same as the one before that (being ‘today’ in this case)
Has anybody tried to use ApexChart Card to create a chart from data directly in InfluxDB?
For example using data_generator to run a query using the Influx API.
I periodically load my electricity usage and cost data from Octopus into InfluxDB. At the moment I create a chart in Grafana and integrate it into a HA dashboard via an iframe but its formatting options are limited and would require compromising security in order to see the graphs in the dashboard from outside my home network.
You could, but you have to write the javascript yourself There’s no “native” integration of apexcharts with influxDB. I wanted to do it at some point, but the native influxDB javascript library is waaaay to big (1.5MB!!) to add to the already heavy apexcharts
In the end, influxDB is only using HTTP requests, so it should work if you can write the appropriate code in data_generator
Hi, I am trying to graph solar monthly production, but if I type duration 1month it crashes HASS, or if it paste 1month it doesnt crash HASS but the results are not correct.
It now shows the correct monthly generation, but when I hover the mouse over the bar, the hover box has the date as mid month - eg Jan 16 2021 4:30pm. Is it possible to change this so it only has month and year - eg Jan 2021 ?
Hello,
I need some help, if possible.
I’m trying to build a graph using info from a query to a db using the sensor sql.
I’ve manage to create the sensor with the string “data_generator” format, but I’m not being able to create the graph using the sensor. I’m not able to pass the sensor values in a way that Apexchart can read it as “data_generator”. Below a screen shot of sensor.
I have a vague memory of this being discussed, but would it be possible to click the header value and be preseted with the historical grap shown below?
I just created a statistics sensor to get the min/max for a specific entity then use that value with “lovelace-card-templater” to create a jinja template for the min and max values for apex charts. It seems to work good so far to auto adjust the limits.
Hi, I’m trying to show the current and past 3 days of my solar production/imported/exported/self-consumption.
Self-consumption is showing correctly on the graph for today, but not for the past days.
See below for the picture.
Extra info:
I’m using the MAX function in the graph for the sensor (sensor.energy_total_zelfconsumptie_kwh)
=> this retraction goes wrong a couple of seconds(?) before midnight. I think the sensor resets itself to soon - retracting 0 from the produced solar power… see picture:
i have a binary sensor and i want to display its attributes.
The problem is that shows double values in the diagram.
16.04 the binary sensor was activated, but it shows me the 17.04. but also.
And with the same date as on April 16.
Today I shouldn’t have any data.
Like everybody else , love this card have been studying this channel quite a lot. The examples in this channel with the apex config examples really help a lot ! Would suggest to add them to the github.
I’m wondering if somebody knows how to add a different scale axis on the right sight with apex config ? Would like to add the consumption and generation with a dotted line in this graph below. Will add the code for other people once if added the dotted line and axis so they can also use it ! Thanks a lot !
I think I’m one step further but still no luck.
I was wrongly understanding the format. Reading better the documentation the first field need to be the timestamp in ms (done) and second field need to be a number or float. I think the issue could be that I’m passing a full string.
Anyone had same issue or has any sugestion on how to overcome? would it work trying to manipulate the string using “templating” (I’m not familiar with this). Thanks in advance for any sugestions.
current format of the sensor:
‘[[1618527600000, 11.23], [1618614000000, 12.39], [1618700400000, 2.88]]’
The only way I have found to add a second axis is actually to define y-axis values for all series individually. However, it is pretty flexible, and you can selectively choose which axes you want to display (e.g. if you have multiple between the same set of values), and which ones should appear on the right using opposite: true. You basically just need a ‘yaxis’ section that matches (in order and number) the series you have.
I’m currently evaluating a shower sensor using the trend binary sensor, and have got the below Apex card to visualise all the 4 things I want to see. Humidity % (closer left axis), two binary sensors between 0-1 (right axis - the second one is hidden), and the trend gradient (far left axis).
In that order, I have configured the axes like this: