Added an import and treemap to png statemets, but for some reason didnot work, and took forever to run. So, I left the lines but for now commented them out.
This commit is contained in:
@ -14,6 +14,7 @@ import pandas as pd
|
|||||||
from plotly.subplots import make_subplots
|
from plotly.subplots import make_subplots
|
||||||
import plotly.graph_objects as go
|
import plotly.graph_objects as go
|
||||||
import plotly.express as px
|
import plotly.express as px
|
||||||
|
#import plotly.io as pio
|
||||||
|
|
||||||
def display_group_hierarchy_on_a_treemap(filename: str):
|
def display_group_hierarchy_on_a_treemap(filename: str):
|
||||||
|
|
||||||
@ -54,6 +55,8 @@ def display_group_hierarchy_on_a_treemap(filename: str):
|
|||||||
fig.show()
|
fig.show()
|
||||||
file_name, file_ext = os.path.splitext(filename)
|
file_name, file_ext = os.path.splitext(filename)
|
||||||
fig.write_html(file_name + ".html")
|
fig.write_html(file_name + ".html")
|
||||||
|
|
||||||
|
#pio.write_image(fig,file_name + ".png",width=800,height=600,format='png')
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user