I have two subplots sharing x-axis, but it only shows the y-value of one subplot not both. I want the hover-display to show y values from both subplots. Here is what is showing right now: But I want it to show y values from the bottom chart as well even if I am hovering my mouse on the top chart
Tag: plotly
Plotly (Python) – Can plotly inherit categories order setted in pandas?
A simple question: Instead of expliciting categories every time in plotly express, like: Can plotly inherit categorical order already setted in pandas? like: So in the end will be just: Answer To my knowledge, the order of the categories is not automatically implemented for the x-axis. But you don’t have to hard-code it like you’ve done in your example. Instead
Why can’t I see graphs created with the plotly library on GitHub?
When I see the visualization displayed with the help of plotly, I would like to save it in a *.png file, e.g. with the help of a screenshot, and then in the readme file put a link to this file so that the image is displayed in the description of the repository. This is an example of such a reference
Switching plots with radio button screws up the format
I am trying to do something relatively simple. I want to create a radio button that switches between two plotting formats. The radio button switches between two options. Let us call them ‘a’ and ‘b.’ When ‘a’ is selected, I want to plot two figures side by side using bootstrap row/col. When option ‘b’ is selected, I want to use
Why does Python Plotly function with barmode produce an error?
I have been trying to figure this out for a while, so any help would be appreciated. I am able to run fig_test_reg just fine, but then when I try to run the same parameters through a function I get a ValueError: ValueError: Value of ‘pattern_shape’ is not the name of a column in ‘data_frame’. Expected one of [‘Fruit’, ‘Amount’,
How to plot a Plotly Choropleth map with English local authorities using GeoJSON
I have copied the example from the Plotly guidance here. and I am able to reproduce their map of US Counties. Now I am trying to produce a similar Choropleth map, except using English Local Authorities. I have downloaded a GeoJSON for English Lower Tier Authorities from here.. This was huge resolution and slow to load, so I’ve compressed it
Jupyter Lab Render button disable
There is a green button call ‘Render with panel ‘ in my ‘Jupyer lab’ and I’m trying to get rid of it, not sure where its come from. Things I’ve tried: https://discourse.jupyter.org/t/how-can-i-disable-an-extension-in-jupyterlab-3/9332/2 the jupyter labextension disable didn’t work Answer That icon comes from the Panel Extension, ‘Panel: A high-level app and dashboarding solution for Python’. It’s part of their visual
Plotly: How to manually assign bar colors to categorical lables in go.bar()
I have a bar plot, with three bars that I am constructing from a dictionary. I am trying to map the individual bars to specific colors, based on the barname, not the value of the bar. I have been trying to find an answer for this for quite some time but am only finding answers related to mapping colors to
Dash chart does not display default dropdown value selection upon page load and refresh
I’m just getting to grips with Dash but am coming across a problem I can’t resolve. I am trying to pass a default dropdown value to a line chart upon page load, but even though the value is present in the dropdown menu it doesn’t render in the chart: As soon as I select another country (region) though, the chart
Plotly two Y axes: how to show one dataset as a linechart and the second one as a scatter plot
I have checked the documentation, but I have not found an answer to my question. This code comes from Plotly (link here) and allows to create a plot with two Y axis from two different data sets: Now. I want the data displayed in the second Y axis to be a scatter plot instead of a line. Is there a