Basically, I have a plotly animation which uses a slider and pause/play buttons to go through a dataset. I want to extract the number of the current frame (i.e., the current index in the ‘steps’/‘frames’ lists which the slider is on) in a Dash callback, so that I can update a table based on the main graph. For example, in
Tag: plotly
How to change the range of theta for each plotly scatterpolar category
I am currently using Plotly’s scatterpolar module to create a radar chart. I am trying to visualize the statistical categories for all 5 basketball statistics (points, assists, rebounds, steals, and blocks). The problem is that the range for every single category is set to the highest value which is points. I’d like to make the range for each category separate
python, using seaborn or plotly to show graphs for medication points over time
I’m trying to plot my heart rate and steps against when i have coffee. The dataset is like this, Where 1 is the hour i had coffee and 2 is 4 hours after and 0 is no coffee. Currently I’m trying to plot these points out like this, But this is giving me a unreadable graph like this, I’d love
Line chart not showing data on multi-page plotly dash
Weird error here. A single page plotly dash shows data on my line chart but when I created a multi page dash, the line chart doesn’t show the data anymore. just shows this. Can’t seem to find a way to show the line chart data even though my code is the same. index.js main.py New to dash so any help
create custom marked degree for plotly windrose python
Is there a way to add additional degrees in windrose(default degrees marked as every 45° )? what I want to do is, mark degrees at every 22.5° instead of every 45°(0°,22.5°,45°,67.5° and so on). I read the plotly windrose documentation, but couldn’t able to find a suitable way to fix this. code: Answer have used alternate source of data… doesn’t
Inset Maps in Plotly (Python)
I am currently trying to plot a few maps by using Plotly Express and Mapbox in Python. I need to have a big map with the country and, next to it, an inset map with a “zoom” to a particular region (see Image attached as an example) INSET MAP EXAMPLE. I managed to plot the bigger map (i.e. the whole
How to extract total year rows and columns from multiindex to create histograms in plotly
How do I create dataframes showing daily data for each year to create histograms in plotly? I want my output for 2019 data frame to have all of 2019 transactions and my other dataframe to have all of 2020 transactions Answer Try with
Color map based on dataframe with countries’ counts values
I have a dataframe called country which contains country_code and frequency counts for countries. country_code frequency 0 US 17600 1 CN 8572 2 KR 1121 3 JP 299 4 DE 199 I wrote a code to plot distribution of countries on a world map: The result I got: Output data Something is wrong with the code, I cannot find the
How to avoid overlapping text in a plotly scatter plot?
I am looking for a solution to avoid overlapping text in the text-labels. I create the image with plotly scatter. Maybe there is an automation here. Answer Unfortunately, there does not seem to be a direct way to do this. A little digging on the plotly community forum will show you that it has already been requested and that the
Plotly equivalent to fig.axis.set_major_locator(matplotlib.dates.WeekdayLocator(interval=X))
I’ve been trying to find some sort of equivalent function in plotly for: fig.axis.set_major_locator(matplotlib.dates.WeekdayLocator(interval=2)) Anyone have any idea? I already have a barplot and simply want to change the xticks for my dates. Instead of being auto, I’d like them to be ex. every week. It would seem the closest I got to was to create the range manually, I