Skip to content

Conversation

@Buddy-Matt
Copy link

I've added in some functionality to allow plotting of the new "areaRange" chart type (https://apexcharts.com/angular-chart-demos/range-area-charts/combo/)

There are a few niggles - such as the pop-up values not quite working properly (it appears they've changed how this works specifically for rangeArea charts) - but it works well enough for my needs, so thought I'd share it back with you for further development.

There's also a new bit of code to allow specific legend items to be hidden - mainly because this was easier to implement than plotting the mean & range from a single series.

Example of the chart in action - replicating the Home Assistant statistics history card look & feel (which is basically the functionality I want):

image

and the YAML to get this going:

type: custom:apexcharts-card
entities:
  - entity: sensor.smart_meter_electricity_power
    name: Grid Power (range)
    color: rgb(255,0,0)
    stroke_width: 0
    opacity: 0.3
    type: rangeArea
    statistics:
      type: range
      period: 5minute
    show:
      legend: false
  - entity: sensor.smart_meter_electricity_power
    name: Grid Power
    color: rgb(255,0,0)
    stroke_width: 1
    type: line
    statistics:
      type: mean
      period: 5minute

@GustavSVJ
Copy link

Is there anything I can do to help get this closed?

@RomRider RomRider changed the base branch from master to dev July 4, 2024 13:26
@RomRider
Copy link
Owner

RomRider commented Jul 5, 2024

Could you please rebase to the latest version and I'll have a look! Sorry for the delay...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants