Skip to content

Tag: plotly

Break line chart on the plot

I have a dataframe with a column for weeks and data captured for each week. it looks like this Now I am plotting a line chart with this data . Notice that from week 23 to week 40, we didnt have data. so my intention is to skip this weeks on the plot and only have a line chart of

Overlay Two Plots in Plotly

Using seaborn I can combine two plots with the code below. Then, I obtain the following graph: I would like to have the same plot in Plotly so that I can use it in Dash. To do so, I have looked up old posts and used 1) fig = go.Figure(data = trace1.data + trace2.data) worked but did not separate graphs

Choropleth Plotly Indonesia

I’m trying to make Choropleth Indonesia using Plotly, but I still confused about locationmode and geo_scope of Indonesia. How to figure it out? Answer plotly is packaged with country and US state geometry. If you want to have a choropleth of Indonesia showing different regions / provinces you need to su…