HA Sankey Chart Card not connecting small sized entities

Hey all,

Pls see attached for my Sankey chart card that I’m using through HACS. It looks great, but I cannot seem to connect those last few entities in the second section to that in the first, even though I’ve listed them as children to the 1st. I just want to chart to show they’re children and not isolated. I tried increasing width, but that didn’t work. Thanks for the help.

Share your card YAML config. Correctly formatted for the forum.

Here’s the yaml

type: custom:sankey-chart
layout: horizontal
height: 265
unit_prefix: k
round: 1
co2_intensity_entity: sensor.co2_signal_co2_intensity
min_box_size: 3
min_box_distance: 5
min_state: 0
show_states: true
show_units: true
sections:
  - entities:
      - type: entity
        children:
          - sensor.load1
          - sensor.load2
          - sensor.load3
          - sensor.load4
          - sensor.load5
          - sensor.load6
          - sensor.load7
          - sensor.load8
          - sensor.load9
          - sensor.load10
        entity_id: sensor.main
        color: random
        name: Grid
  - entities:
      - type: entity
        children: []
        entity_id: sensor.load1
      - type: entity
        children: []
        entity_id: sensor.load2
      - type: entity
        children: []
        entity_id: sensor.load3
      - type: entity
        children: []
        entity_id: sensor.load4
      - type: entity
        children: []
        entity_id: sensor.load5
      - type: entity
        children: []
        entity_id: sensor.load6
      - type: entity
        children: []
        entity_id: sensor.load7
      - type: entity
        children: []
        entity_id: sensor.load8
      - type: entity
        children: []
        entity_id: sensor.load9
      - type: entity
        children: []
        entity_id: sensor.load10
gas_co2_intensity: 66.6
energy_date_selection: true
sort_dir: desc
throttle: 0
wide: true
show_icons: false
show_names: false
title: Energy Flow
grid_options:
  columns: 39
  rows: auto
card_mod:
  style: |
    ha-card {
      background: rgba(255,255,255,0.9);
      border-radius: 50px;
    }

That looks fine. Can you increase the card size (are you using sections?)?

Thank you for your response. I did increase card size (both rows and columns) - didn’t help. I am using the sections view.

What’s interesting is, on some days, all lines join and nothing’s isolated. Also, occasionally, the sum of all children exceed the parent sensor (not by much though - less than 2% of parent’s value). I’m not sure if that’s what’s being represented here - the excess sum resulting in isolated children.

Yeah I reckon it is.

Fyi I solved this by including:

sections:
  - entities:
      - type: entity
        children_sum:
          reconcile_to: max
          should_be: equal
        children:

The children_sum object fortunately solves this dilemma.