Exemplo n.º 1
0
def page(data, name):

    # 页面所有图表
    page = Page(layout=Page.DraggablePageLayout)
    page.page_title = name
    page.add(kline(data=data), line_shouyi(data=data))
    return page
Exemplo n.º 2
0
def page_simple_layout():
    page = Page(layout=Page.SimplePageLayout)
    page.add(
        course_selection_ranking(),
        class_sum_by_subject(),
        subject_pie(),
        word_cloud(),
    )
    page.page_title = "MOOC当前开放课程可视化"
    page.render("当前全部开放课程可视化.html")