Skip to content

How do you add Y axis labels and names? #249

Answered by dbuezas
jazzmonger asked this question in Q&A
Discussion options

You must be logged in to vote

Yes you have two options:

  1. Give the entitiy that uses the right axis a unit_of_measurement. This usually comes from home_assistant, so I assume you are plotting an attribute. By default, this card will use that as the axis title. You should post your yaml too :)
  2. Set the yaxis2 title manually:
layout:
  yaxis2:
    title: "I'm the right axis!"

More examples here and the full API here

Pro tip: googling "how to do xyz in plotlyjs" will usually get you what you want when styling your plot, and may also inspire some new ideas too :)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dbuezas
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants