Sunday 7 May 2023

Sort function in Sunburst graph pyecharts

I have a Sunburst graph like this: graph

I want the graph to start monthwise, like August, October and then November. I tried using sort= undefined but it does not fix it, even though it works in echarts

This is the current option set:

c = (
    Sunburst(init_opts=opts.InitOpts(width="1200px", height="1200px"))
    .add(
        "",
        data_pair=data4,
        highlight_policy="ancestor",
        radius=[0, "95%"],
        sort_="undefined",
    )
      .render("sunburst1.html")
)

Does anyone know how could I fix this, I have been looking through the documentation and examples, but there's not any information on this.



from Sort function in Sunburst graph pyecharts

No comments:

Post a Comment