用法:
panel_widgets.card(title='', widget=True, **library_specific_params)
包含降價內容的卡片圖表,可以位於主儀表板或側麵導航欄中。
類型:number_chart 或 number_chart_widget
- content: {str, markdown static content}, default “”:
- title: str,:
圖表標題
- widget: bool, default True:
如果小部件為 True,則圖表將放置在側導航欄上,否則將其放置在主儀表板中
- **params:
要傳遞給函數的附加參數。有關更多信息,請參閱麵板文檔
參數:
import cudf from cuxfilter import charts, DataFrame import panel as pn cux_df = DataFrame.from_dataframe(cudf.DataFrame({'key': [0, 1, 2, 3, 4]})) card_chart = charts.card(pn.pane.Markdown(""" # H1 ## H2 ### H3 #### H4 ##### H5 ###### H6 ### Emphasis Emphasis, aka italics, with *asterisks* or _underscores_. """), title="Test Markdown title") d = cux_df.dashboard([card_chart]) # view the individual card_chart chart part of the dashboard d card_chart.view()
相關用法
- Python cuxfilter.charts.panel_widgets.int_slider用法及代碼示例
- Python cuxfilter.charts.panel_widgets.float_slider用法及代碼示例
- Python cuxfilter.charts.panel_widgets.multi_select用法及代碼示例
- Python cuxfilter.charts.panel_widgets.date_range_slider用法及代碼示例
- Python cuxfilter.charts.panel_widgets.range_slider用法及代碼示例
- Python cuxfilter.charts.panel_widgets.drop_down用法及代碼示例
- Python cuxfilter.charts.datashader.heatmap用法及代碼示例
- Python cuxfilter.charts.datashader.line用法及代碼示例
- Python cuxfilter.charts.datashader.graph用法及代碼示例
- Python cuxfilter.charts.bokeh.bar用法及代碼示例
- Python cuxfilter.charts.datashader.scatter用法及代碼示例
- Python cuxfilter.charts.datashader.stacked_lines用法及代碼示例
- Python cuxfilter.charts.bokeh.line用法及代碼示例
- Python cuxfilter.dashboard.DashBoard.add_charts用法及代碼示例
- Python cuxfilter.dashboard.DashBoard.preview用法及代碼示例
- Python cuxfilter.dashboard.DashBoard用法及代碼示例
- Python cuxfilter.dashboard.DashBoard.app用法及代碼示例
- Python cuxfilter.dashboard.DashBoard.export用法及代碼示例
- Python cuxfilter.dataframe.DataFrame.from_dataframe用法及代碼示例
- Python cuxfilter.dataframe.DataFrame.from_arrow用法及代碼示例
注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cuxfilter.charts.panel_widgets.card。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。