kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
3.05k stars 237 forks source link

Labels for secondary Y-axis: align right #741

Closed ildar170975 closed 2 years ago

ildar170975 commented 2 years ago

Currently labels for both primary & secondary Y-axis are left-aligned: изображение

  - type: custom:mini-graph-card
    entities:
      - entity: sensor.cleargrass_1_temperature
        name: Temp
      - entity: sensor.cleargrass_2_co2
        name: CO2
        y_axis: secondary
    lower_bound: ~0
    lower_bound_secondary: ~0
    show:
      labels: true
      labels_secondary: true

It does not look fine if the max value is huge.

I think that for the secondary Y-axis the labels should be right-aligned: изображение

Currently I may achieve it by card-mod but it is better to have it permanently:

    card_mod:
      style: |
        .graph .graph__container .graph__labels.--secondary.flex {
          align-items: flex-end;
        }
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

jlsjonas commented 2 years ago

I believe this was done in https://github.com/kalkih/mini-graph-card/commit/8577f2fb59876bd92cec4744e447f25bcc3c5797 @ildar170975 ? (P.s.: best to add the maybe later label instead of removing stale every 45 days 😁)

stale[bot] commented 2 years ago

Still an active issue, got it! Removing stale label.

ildar170975 commented 2 years ago

I believe this was done in 8577f2f

@jlsjonas Yes! Shall we close the issue or set "May be later" ?