Comments (12)
I also noticed very weird behaviour, but in my opinion
points_per_hour: 2 hours_to_show: 6
produces correct graph in terms of its length - 6 hours, and number of points - in this case 12, but what is wrong is actually the labels about each point. Even if the time frame it shows covers 30 minutes each and every point starts with an hour difference between other neighboring points.
{That 3 minutes difference is because I took second pictures 3 minutes later}
So the last point should say something about 4 AM not 11 PM previous day.
So in my opinion the graph is correct, because it shows lines correctly, only the labels are not.
from mini-graph-card.
I am definitely sure that the graph itself is fine. i compared it with my original temp graphs I have from the native thermostat app.
from mini-graph-card.
@kalkih : I can confirm what @slavkobrzeg mentioned - the graphs look right, just the timestamp calculations are off.
Thanks a zillion for the quick response on this!
from mini-graph-card.
I works perfectly!
from mini-graph-card.
Tested - all issues fixed and it looks really great
What an outstanding addition to HA. Thanks @kalkih for this
from mini-graph-card.
As @slavkobrzeg and #37 says, the timestamp is definitely not calculated correctly when using the points_per_hour option.
Although I believe that the actual graph is correct, at least from my testing, as long as hours_to_show is an integer the graph will render the correct history.
Would be great if you could confirm this by maybe creating a history-graph
card just below the mini-graph-card and set the same hours_to_show
in the config and compare the results.
from mini-graph-card.
There is also a problem with the labels (too much to the left and also too tiny after reducing font_size to 60) but I think there is a merged patch that would fix that in master already
The labels are getting changed in the next version, however they still scale with the set font_size
, will see if I possibly can add a min size for them, where they won't scale below, thanks!
from mini-graph-card.
@arigit Also added a min size to the labels font size which it won't scale below cd6d880
from mini-graph-card.
It seems there is a fix committed to master for this already! Willing to test - but I couldn't find a test .js 'bundle' to replace the one I have installed on my raspbian-based HA install.
I have "custom-updater' installed as well and refreshing it ever now and then - it is not yet seeing the new version. @kalkih would it be possible to post a 'js bundle' somewhere that includes the latest commits so we can give it shot and confirm
from mini-graph-card.
@arigit
It's in the dev
branch and will be in the next release.
I usually don't do pre releases but sure, why not 🙂
https://github.com/kalkih/mini-graph-card/releases/tag/0.2.2-beta
Make sure to clear cache or bump the version number in the resource reference to make sure the new version loads properly.
from mini-graph-card.
Found another issue with the reported timestamps, this time when only part of set hours_to_show
was available in history, should be resolved with 2dc35b7 by rendering missing history in a straight horizontal line up to the point where history is available.
from mini-graph-card.
Fixed in latest v0.2.2
from mini-graph-card.
Related Issues (20)
- Using same tile with 2 graphs but different max/min HOT 3
- Incorrect report in bars vs history-graph HOT 5
- Non existing data shown on group_by date with aggregate_fuct max or last HOT 6
- Sporadic data showed wrong from origin HOT 2
- Extrema option doesn't account for unit changes HOT 4
- The display of numerical values does not support the format set in HA HOT 2
- Possibility to map string values to binary values HOT 2
- Improve showing a date for a selected point HOT 2
- Feature request - Option to show vertical markers for specific time periods HOT 1
- align_icon to right is not applied HOT 1
- Fill color problem when line is flat HOT 3
- Show state next to a legend's label HOT 1
- show_points: false HOT 4
- Graph doesn't fully render outside local network HOT 5
- 12am or 12pm in a 24 hour format shown as 0am or 0pm when using extrema HOT 1
- Yaml code does not work on HAOS but works on docker container version HOT 2
- Unable to set range correctly HOT 1
- mini-graph-card not showing actual value HOT 2
- Mini graph
- Question: Average between two entities? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini-graph-card.