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

add secondary y-axis #326

Closed
cryptedx opened this issue Nov 8, 2020 · 11 comments
Closed

add secondary y-axis #326

cryptedx opened this issue Nov 8, 2020 · 11 comments
Assignees
Labels
feature 🌟 Feature request or enhancement Module Chart Module Chart
Projects

Comments

@cryptedx
Copy link

cryptedx commented Nov 8, 2020

Hey,

please can you add a secondary y axis so that we can have two different values in one chart?

Here is my example:
image

Left it should be °C on the right it should be %. Just as example. It should simply accept what is given as unity.

@cryptedx cryptedx added the feature 🌟 Feature request or enhancement label Nov 8, 2020
@cryptedx cryptedx changed the title Chart Sekundärachse Chart secondary y axis Nov 8, 2020
@Zefau Zefau modified the milestones: ROADMAP v1.1.0, ROADMAP v1.2.0 Nov 8, 2020
@Zefau Zefau added the Module Chart Module Chart label Nov 8, 2020
@Zefau Zefau modified the milestones: ROADMAP v3.0.0, VOTING FEATURE REQUESTS Dec 8, 2020
@Zefau Zefau mentioned this issue Sep 27, 2021
@Zefau Zefau removed this from the VOTING FEATURE REQUESTS milestone Sep 27, 2021
@Zefau Zefau added this to IMPLEMENTED LOCALLY in v3.0.x Sep 27, 2021
@Zefau
Copy link
Owner

Zefau commented Sep 27, 2021

@mcuiobroker implemented with v3.0.0-alpha.84

In dem Feld für y-Achsen ist nun ein Array anzugeben (also [ ... ]) mit den einzelnen Achsen als Object (also [{ ... }, { ... }]).
Beispiel siehe

@Zefau Zefau moved this from IMPLEMENTED LOCALLY to IN TEST in v3.0.x Sep 27, 2021
@mcuiobroker
Copy link
Collaborator

Läuft. Prima. Danke.

@mcuiobroker
Copy link
Collaborator

image

@Zefau Zefau moved this from IN TEST to IN PROGRESS in v3.0.x Sep 28, 2021
@Zefau Zefau moved this from IN PROGRESS to IMPLEMENTED LOCALLY in v3.0.x Sep 28, 2021
@Zefau
Copy link
Owner

Zefau commented Oct 1, 2021

schau mal bitte mit v3.0.0-alpha.85

@Zefau Zefau moved this from IMPLEMENTED LOCALLY to IN TEST in v3.0.x Oct 1, 2021
@cryptedx
Copy link
Author

cryptedx commented Oct 1, 2021

Sorry, kann nicht mehr testen. Bin seit längerem zu Home Assistant gewechselt.

@Zefau
Copy link
Owner

Zefau commented Oct 1, 2021

ok, schade

@mcuiobroker
Copy link
Collaborator

mcuiobroker commented Oct 1, 2021

Es kommt keine Fehler-Anzeige mehr. Kannst du erstmal schließen.
Eine Kleinigkeit, Vorbelegung der Einstellung ist noch JSON nicht Array:
image

@Zefau Zefau closed this as completed Oct 2, 2021
v3.0.x automation moved this from IN TEST to DONE Oct 2, 2021
@Zefau Zefau changed the title Chart secondary y axis add secondary y-axis Nov 28, 2021
@Timbo10071982
Copy link

@mcuiobroker implemented with v3.0.0-alpha.84

In dem Feld für y-Achsen ist nun ein Array anzugeben (also [ ... ]) mit den einzelnen Achsen als Object (also [{ ... }, { ... }]). Beispiel siehe

Hey @mcuiobroker & @Zefau ,

can you guys make a code example here, how it should be entered in the field?

That would be brilliant.

Thanks

@mcuiobroker
Copy link
Collaborator

mcuiobroker commented Dec 27, 2021

Look at WIKI. Just my PC hang up, Hardware defect. So cant Help you directly

https://mcuiobroker.gitbook.io/jarvis-infos/jarvis/besonderheiten-v3/historygraph

@Timbo10071982
Copy link

Look at WIKI. Just my PC hang up, Hardware defect. So cant Help you directly

https://mcuiobroker.gitbook.io/jarvis-infos/jarvis/besonderheiten-v3/historygraph

Works like a charm! Thanks for the hint!

@TZanke
Copy link

TZanke commented Jul 30, 2022

Thank you @Zefau for the feature!
Thank you @mcuiobroker for the hint!

But nevertheless i stumbled about some tiny detail till i got it to work properly.
JSON integers and boolean need to be without quotes. 😩

image

Also you should move the data to the correct axis, but the fields will only be available after saving the JSON.
image

My settings:

[
  {
    "name": "Temperatur",
    "min": "dataMin",
    "max": "dataMax",
    "axisLabel": {
      "formatter": "{value} °C"
    },
    "axisLine": {
      "show": true
    }
  },
  {
    "name": "abs. Feuchte",
    "position": "right",
    "min": "dataMin",
    "max": "dataMax",
    "axisLine": {
      "show": true
    }
  },
  {
    "position": "right",
    "min": 0,
    "max": 100,
    "offset": 50,
    "axisLine": {
      "show": true
    },
    "axisLabel": {
      "formatter": "{value} %"
    }
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🌟 Feature request or enhancement Module Chart Module Chart
Projects
No open projects
Development

No branches or pull requests

5 participants