Skip to content

About

๐Ÿ“‰ Charts (Bars, Lines, Donuts) for Home Assistant Sidebar and Dashboard

Topics

Resources

Stars

49 stars

Watchers

2 watching

Forks

Latest commit

ย 

History

128 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

HACS validation hacs_badge GitHub release Panel Size README Deutsch Downloads Support stars

Detailed Charts Panel

Interactive High-Performance Charts for Home Assistant

The ๐Ÿ“‰ Detailed Charts Panel is a powerful visualization solution for Home Assistant, allowing for in-depth analysis of historical data from your sensors. It offers features that go far beyond standard history, such as zoom, pan, grid layouts, various chart types, and persistent configuration. Furthermore, everything runs entirely locally using the Home Assistant WebSocket API.

The panel automatically saves your settings (selected sensors, colors, view options) in the browser (Local Storage), ensuring your analysis environment is ready immediately after a reload.

If you like this panel, I would be very happy about a star rating โญ. ๐Ÿค—

Wiki

detailed-charts-panel

Features

  • ๐Ÿ“‰ Interactive Charts: Smooth zoom & pan (touch & mouse wheel) with automatic data reloading.
  • ๐Ÿ“‰ Previous Year Comparison: Compare current data directly with the previous year.
  • ๐Ÿ“‰ Short-Term & Long-Term Charts: Supports short-term and long-term data analysis.
  • ๐ŸŒ Multilingual: Full translation support for English and German.
  • โœจ Panel Mode & Card Mode: Two viewing options โ€” full panel view or as a dashboard card.
  • โšก Auto-Scale (W โžก kW): Automatically converts values from W/Wh to kW/kWh โ€” no mental math required!
  • ๐Ÿฉ Donut Sidebar: Optional sidebar showing percentage distribution (ideal for power consumption).
  • ๐Ÿ“Š Flexible Layouts:
    • Combined: Everything in a single chart.
    • Grid: 1 to 4 columns side by side.
    • Mixed: Overview on top, details below.
  • ๐Ÿ”ด Reference Lines: Add any number of reference lines, each with its own color and label.
  • ๐Ÿ“ Manual Y-Axis: Optionally set a fixed Y-axis min/max (leave empty for autoscale).
  • ๐Ÿท๏ธ Sensor Aliases: Give each sensor a custom display name.
  • ๐Ÿงฑ Stacked Area: Additional stacked area chart type.
  • ๐Ÿงฎ Meter Sensors (mยณ, kWh): Cumulative counters (total_increasing, e.g. water/gas in mยณ or energy) are aggregated as consumption (sum of increases) instead of being averaged.
  • ๐Ÿ”ง Display Options: Hide the legend, hide the min/max highlight button, and choose the date format (day.month / month/day).
  • ๐Ÿ“Š Live Range Statistics: Statistics recalculate for the currently visible range while zooming/panning.
  • ๐ŸŽจ Color Palette: One click assigns a harmonious, theme-friendly color set ("shuffle colors").
  • โž• Multi-Add & Areas/Devices: Select several sensors at once, or add all sensors of a whole area or device.
  • ๐Ÿ“ Peak Markers: Optional min / max / current markers with labels directly on the line.
  • ๐Ÿ•’ Now Line & Day/Night: Optional "now" line and day/night background shading for easier reading.
  • ๐Ÿ’พ Dual Storage: Save views locally in the browser or globally in a file.
  • ๐Ÿ“ˆ Live Statistics: Min / Max / Average / Sum / Current โ€” intelligently calculated.
  • ๐Ÿ—๏ธ Drag & Drop: Easily rearrange charts in grid mode using drag & drop.
  • ๐ŸŒ‘ Modern UI: Full support for Home Assistant themes (light & dark mode).
  • ๐ŸŸข Binary Sensors: Automatic detection and visualization of binary sensors (e.g. heating, windows).
  • ๐ŸŽฏ Precision & Rounding: Values in tooltips and statistics respect the sensorโ€™s display_precision setting from Home Assistant.
  • ๐Ÿ’ก Smart Tooltips: The info popup automatically moves away from the cursor to avoid covering the chart.

Installation

HACS (Recommended)

  • Add this repository via the link in Home Assistant.

    Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

  • The "Detailed Charts Panel" should now be available in HACS. Click on "INSTALL".

  • The resource will be automatically added to your Lovelace configuration.

  • Create the file detail-charts-views.js in the /config/www/ folder.

Manual Installation via HACS

Manual Installation via HACS

Open HACS in Home Assistant.

  • Go to "Frontend" and click the three dots in the upper right corner.
  • Select "Custom repositories".
  • Paste the URL of this GitHub repository and select "Lovelace" as the category.
  • Click "ADD".
  • The "Detailed Charts Panel" should now be available in HACS. Click on "INSTALL".
  • The resource will be automatically added to your Lovelace configuration.
Manual Installation in HA

Manual Installation in HA

  1. Download Files:

    • Download all files from this repository (especially the .js files).
    • Important: Since this panel uses external libraries, ensure that chart.umd.min.js, hammer.min.js, and chartjs-plugin-zoom.min.js are also downloaded.
  2. Upload Files to Home Assistant:

    • Create a new folder named detailed-charts-panel in the www/community directory of your Home Assistant configuration.
    • Copy all downloaded files into this new folder. Your folder structure should look like this:
      /config/www/community/detailed-charts-panel/detailed-charts-panel.js
      /config/www/community/detailed-charts-panel/detailed-charts-panel-logic.js
      /config/www/community/detailed-charts-panel/detailed-charts-panel-function.js
      /config/www/community/detailed-charts-panel/detailed-charts-panel-editor.js
      /config/www/community/detailed-charts-panel/detailed-charts-panel-langs.js
      /config/www/detailed-charts-views.js
      /config/www/community/detailed-charts-panel/lang-de.js
      /config/www/community/detailed-charts-panel/lang-en.js
      /config/www/community/detailed-charts-panel/chart.umd.min.js
      /config/www/community/detailed-charts-panel/hammer.min.js
      /config/www/community/detailed-charts-panel/chartjs-plugin-zoom.min.js
      
  3. Add Resource to Home Assistant:

    • Go to Home Assistant Settings > Dashboards.
    • Click the three dots menu in the top right corner and select Resources.
    • Click + Add Resource.
    • Enter the URL /local/community/detailed-charts-panel/detailed-charts-panel.js.
    • Select JavaScript Module as the resource type.
    • Click Create.
  4. Create the file detail-charts-views.js in the /config/www/ folder.


IMPORTANT!

To display the dashboard in the sidebar, you must add the following code to the beginning of your configuration.yaml:

panel_custom:
  - name: detailed-charts-panel
    sidebar_title: Detailed Charts
    sidebar_icon: mdi:chart-bell-curve-cumulative
    module_url: /local/community/detailed-charts-panel/detailed-charts-panel.js

About

๐Ÿ“‰ Charts (Bars, Lines, Donuts) for Home Assistant Sidebar and Dashboard

Topics

Resources

Stars

49 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Contributors

Languages