github kalkih/mini-graph-card v0.14.0-dev.3

pre-release4 hours ago

WARNING

This is a pre-release, some functionality might be changed in the final "normal" release (like a name of an option, behaviour of a feature).
Please test, report bugs, provide observations.

What's Changed

features:

fixes:

docs:

New Contributors

Full Changelog: v0.14.0-dev.2...v0.14.0-dev.3


More detailed about new features

Make labels inactive conditionally - show only related Y-axis labels when some point/bar/graph is selected:

111

Keep points of same size - do not scale points when a card's size is changed, then all cards have same consistent line widths & points:

image

Display Y-axis labels conditionally - choose which Y-axis labels should be displayed, 'max' & 'min' (by default) or any of them.
Also, you can display a new 'zero' Y-axis label.

image

Force zero vertical position - force a "Y=0" point vertical position for all axes. Set by a new zero_position option [0..1]:

y_axis:
  zero_position: 0.5
  ...

Number defines a vertical offset from a top edge of a graph canvas.
Although any number [0..1] (incl. 0 & 1) can be set, only values like 0.5 (symmetric split), 0.25 (more attention to a bottom part) or 0.75 (more attention to a top part) should be set.
After fixing a zero vertical position, all upper/lower bounds (including ones defined by a user with lower_bound & upper_bound) are automatically re-calculated to fit in new proportions.
Could be useful for these scenarios:

  1. Fix a vertical position of a 0-baseline for a rapidly changing graph (although positive & negative peaks will be re-scaled automatically). So it is up to a user whether to see a 0-baseline moving up/down or peaks re-scaled.
  2. More interesting case - use for 2 graphs, one graph is inverted:
image image

hours_to_show<=24: show a date for a selected point/bar if it belongs to "yesterday" - display a time in a more clear way:

image

Resolve entity names via hass.formatEntityName - support a new concept for naming entities using different ways like a device name, entity name, area name, floor name:

image

More group_by variants - added "week", "30min" & "15min".

Add options validation for group_by & state_map options - a low-level improvement, options are checked for integrity, values & consistency.

Log fatal errors to console: in case of a wrong config, in a yaml-mode dashboard & on a storage-mode "not-being-edited" view, it is not possible to find out a reason of the failure due to a brief "Configuration error" label & a lack of any details; then a browser's console is a proper way to diagnose.

Don't miss a new mini-graph-card release

NewReleases is sending notifications on new releases.