plotly.graph-objects

How to adjust steps of y-axis

How to adjust steps of y-axis Question: I have a plot in which I have two y-axis. The y-axis on the left represent the bar chart and the y-axis on the left represent the two lines. The problem is that the left y-axis currently creates individual steps for the y-axis values, which results in additional …

Total answers: 1

Plotly – multiple labels on x axis

Plotly – multiple labels on x axis Question: I have a dataset with columns for week and month respectively, and I would like to plot variable in time using both week and month as labels. Can something like this be done with plotly in python? Thanks, Lukas Asked By: Lukas Tomek || Source Answers: Please …

Total answers: 1

How to target a specific trace in pie chart by name when using update_traces() selector attribute?

How to target a specific trace in pie chart by name when using update_traces() selector attribute? Question: The idea is to change the hover template only in the "Resto" trace. Here is a reproducible example: df_stack = pd.DataFrame({"Country": [‘Brasil’,’China’,’Estados unidos’,’Chile’,’India’,’Paises bajos’,’Vietnam’,’Peru’,’Corea, republica de’,’Indonesia’,’Resto’], "Dolars": [11599.42961799,7671.6791054099995,6198.81430321,4578.07,4153.13352132,3352.11349841,2998.44092833,2247.29957849,1968.7549113200002,1890.7284090800001,35635.107780379985], "Pct_change":[0.0846110761489467,0.2953716769009316,0.41561413372310074,0.21787800280514857,0.09245460739576772,0.18325289020293622,0.023857445957433443,0.2555960957383905,0.2319776811635097,0.12068329801455069,0.0] }) fig = go.Figure(data=[go.Pie(labels=df_stack["Country"], values=df_stack[‘Dolars’], hole=.5, customdata = np.transpose([df_stack["Pct_change"], …

Total answers: 1