Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature_request: Graphs with color band range #1190

Open
mzakharo opened this issue Dec 24, 2024 · 1 comment
Open

feature_request: Graphs with color band range #1190

mzakharo opened this issue Dec 24, 2024 · 1 comment
Labels
question Further information is requested

Comments

@mzakharo
Copy link

I use mini-graph-card to maintain chemical levels of my Hot Tub. I need to maintain the chemical levels within a certain range:
image

There is certainly a better way of doing it, but I managed to get this working by modifying graph.js with the following code:

  getFill(path) {
    let fill = path;
    fill = '';
    fill += 'M0,0';
    fill += ` ${this.width},${this.margin[Y]}`;
    fill += ` ${this.width},${this.height}`;
    fill += ` L 0, ${this.height} z`;
    return fill;
  }

Could support for this type of graph be added to the master repository?

@ildar170975
Copy link
Collaborator

You should prepare a detailed description of what you want to achieve & PR.

@ildar170975 ildar170975 added the question Further information is requested label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants