def get_layouts(mod, filename): dt_ui = make_table_layout(filename) dt_ui.assign_routes(mod) dt_props = dt_ui.build_props() _layouts = {"datatable": {"layout": [dt_props], "title": "Datatables"}} register_layouts(_layouts, mod)
def get_layouts(mod, filename): # datamaps dm_ui = make_datamaps_ui(filename) dm_ui.assign_routes(mod) dm_props = dm_ui.build_props() _layouts = {"datamaps": {"layout": [dm_props], "title": "Datamaps"}} register_layouts(_layouts, mod)
def get_layouts(mod, filename): # metrics graphics nv_ui = make_nv_layout(filename) nv_ui.assign_routes(mod) nv_props = nv_ui.build_props() _layouts = {"nvd3": {"layout": [nv_props], "title": "NVD3"}} register_layouts(_layouts, mod)
def get_layouts(mod, filename): # metrics graphics nv_ui = make_nv_layout(filename) nv_ui.assign_routes(mod) nv_props = nv_ui.build_props() _layouts = {"nvd3":{"layout": [nv_props], "title": "NVD3"}} register_layouts(_layouts, mod)
def get_layouts(mod, filename): dt_ui = make_table_layout(filename) dt_ui.assign_routes(mod) dt_props = dt_ui.build_props() _layouts = { "datatable": {"layout": [dt_props], "title": "Datatables"} } register_layouts(_layouts, mod)
def get_layouts(mod, filename): # metrics graphics mg_ui = make_mg_layout(filename) mg_ui.assign_routes(mod) mg_props = mg_ui.build_props() _layouts = OrderedDict() _layouts["mg"] = {"layout": [mg_props], "title": "metrics-graphics"} register_layouts(_layouts, mod)
def get_layouts(mod, filename): # datamaps dm_ui = make_datamaps_ui(filename) dm_ui.assign_routes(mod) dm_props = dm_ui.build_props() _layouts = { "datamaps": {"layout": [dm_props], "title": "Datamaps"} } register_layouts(_layouts, mod)
def get_layouts(mod, filename): # plotly plotly_ui = make_ui(filename) plotly_ui.assign_routes(mod) plotly_props = plotly_ui.build_props() _layouts = {"plotly": {"layout": [plotly_props], "title": "Plotly"}} register_layouts(_layouts, mod)
def get_layouts(mod, filename): # plotly plotly_ui = make_ui(filename) plotly_ui.assign_routes(mod) plotly_props = plotly_ui.build_props() _layouts = { "plotly": { "layout": [plotly_props], "title": "Plotly" } } register_layouts(_layouts, mod)
def get_layouts(mod): # filters only filters_only = get_filter_props() filters_only["charts"] = [] filters_only["title"] = "Filters" # metrics graphics mg_ui = make_mg_layout() mg_ui.assign_routes(mod) mg_props = mg_ui.build_props() mg_props["title"] = "Metricsgraphics" # plotly plotly_ui = make_plotly_ui() plotly_ui.assign_routes(mod) plotly_props = plotly_ui.build_props() plotly_props["title"] = "Plotly.js" # datamaps dm_ui = make_datamaps_ui() dm_ui.assign_routes(mod) dm_props = dm_ui.build_props() dm_props["title"] = "Datamaps" # datatables dt_ui = make_table_layout() dt_ui.assign_routes(mod) dt_props = dt_ui.build_props() dt_props["title"] = "Datatables" # nvd3 nv_ui = make_nv_layout() nv_ui.assign_routes(mod) nv_props = nv_ui.build_props() nv_props["title"] = "NVD3" _layouts = OrderedDict() _layouts["filters"] = {"layout": [filters_only], "title": "Filters"} _layouts["mg"] = {"layout": [mg_props], "title": "metrics-graphics"} _layouts["plotly"] = {"layout": [plotly_props], "title": "Plotly"} _layouts["datamaps"] = {"layout": [dm_props], "title": "Datamaps"} _layouts["datatables"] = {"layout": [dt_props], "title": "Datatables"} _layouts["nvd3"] = {"layout": [nv_props], "title": "NVD3"} register_layouts(_layouts, mod)