-
I'm currently setting up plotly graph cards for weather forecast data. A way of feeding the data into the plot was discussed here. I can get the plot to look like I want if I use fix values for the text and range parameters.
If I don't specify the range parameter, the auto-ranging sets the Y minimum to 0 because this is where the bars start. But I would like to set the lower limit of Y to the actual data minimum, or a bit below that, just as where it would be set to for a scatter plot. Furthermore the auto-scaling cuts the text label off at the top and I want to prevent that by setting the upper Y limit. Question: Is it possible to set the Y range based on the min() and max() of the data series values? Maybe with a lambda function? Or is there another workaround? Another (very similar) question: Is it possible to provide Y values to the text parameters so that data labels above the bars? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
For a different approach see alternative 2 here: #35 (comment) You van make line traces behave somewhat like bar charts, which will allow you to have a different minimum range |
Beta Was this translation helpful? Give feedback.
-
Not at the moment. Although the "alternative 2" may get you close to it |
Beta Was this translation helpful? Give feedback.
-
Yes, set the trace type to line+text (or something like that, google "plotlyjs show values" |
Beta Was this translation helpful? Give feedback.
Not at the moment. Although the "alternative 2" may get you close to it