How do you add Y axis labels and names? #249
-
is there a way to name the y axis labels on the left AND rightside? %is on the left automatically, but I'd like to label it with text. And no way I could find to label the right Y axis... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Yes you have two options:
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 :) |
Beta Was this translation helpful? Give feedback.
-
Also, give the custom range selector a try, it's a more advanced technique, but it gives better results |
Beta Was this translation helpful? Give feedback.
-
title: " " works great!
Thanks
… On Feb 13, 2023, at 1:42 PM, David Buezas ***@***.***> wrote:
title: "
--
This message may contain confidential and/or privileged information. If
you are not the addressee or are not authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based on
this message or any information herein. If you have received this message
in error, please advise the sender immediately by reply email and delete
this message.
|
Beta Was this translation helpful? Give feedback.
Yes you have two options:
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 :)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 :)