Giter Club home page Giter Club logo

Comments (6)

dbuezas avatar dbuezas commented on June 1, 2024

The x axis is internally used to decide what to fetch, you'll need to add an entity that uses it and maybe hide it.

from lovelace-plotly-graph-card.

bj00rn avatar bj00rn commented on June 1, 2024

The x axis is internally used to decide what to fetch, you'll need to add an entity that uses it and maybe hide it.

Thanks for quick reply! Could you give me a hint on how to do that, I would be eternally grateful 😽

from lovelace-plotly-graph-card.

dbuezas avatar dbuezas commented on June 1, 2024

I've never done such a thing. Don't the custom range buttons in the readme work by any chance?

from lovelace-plotly-graph-card.

bj00rn avatar bj00rn commented on June 1, 2024

I've never done such a thing. Don't the custom range buttons in the readme work by any chance?

The buttons seem to disappear as soon as i set raw_plotly_config: true. Is this expected behaviour?

from lovelace-plotly-graph-card.

dbuezas avatar dbuezas commented on June 1, 2024

It's probably because the x axis is not defined.
Here aare the defaults raw_plotly_config removes :

const defaultYamlOptional: {

Maybe you can try reading some

from lovelace-plotly-graph-card.

bj00rn avatar bj00rn commented on June 1, 2024

It's probably because the x axis is not defined. Here aare the defaults raw_plotly_config removes :

const defaultYamlOptional: {

Maybe you can try reading some

Thanks, I guess my question should be, is there a way of interactively slicing the data when using raw_plotly_config?

Given the histogram example from the readme

type: custom:plotly-graph
entities:
  - entity: sensor.openweathermap_temperature
    x: $ex ys
    type: histogram
title: Temperature Histogram last 10 days
hours_to_show: 10d
raw_plotly_config: true
layout:
  margin:
    t: 0
    l: 50
    b: 40
  height: 285
  xaxis:
    autorange: true

Adjusting the hours_to_show seems to do exactly what im looking for.

Thanks again for taking time to answer, I wasn't really trying to file this as a bug, more of a general question.

Awesome card BTW!

from lovelace-plotly-graph-card.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.