code description¶
package structure description¶
chartspy¶
Echarts¶
parameters:
"""
:param options: python dict type echarts option
:param extra_js: complex chart may need extra functions ,use this parameter
:param width: output div width support pixel and percent like 800px/100%
:param height: output div height support pixel and percent like 800px/100%
"""
output:
render_notebook() notebook
render_jupyterlab() jupyterlab
render_html_fragment() html fragment(used for copy and past)
render_html() complete html
dump_options() print js configuration(used for copy and past)
G2PLOT¶
parameters:
"""
:param df: Dataframe or list
:param plot_type: g2plot plot type like Area Column Line
:param options: g2plot configuration
"""
output:
render_notebook() notebook
render_jupyterlab() jupyterlab
render_html_fragment() html fragment(used for copy and past)
render_html() complete html
dump_options() print js configuration(used for copy and past)
KlineChart¶
parameters
"""
:param df: Dataframe columns=[open,high,low,close,volume,timestamp,turnover]
:param width: default 100%
:param height: default 600px
"""
render_notebook() notebook
render_jupyterlab() jupyterlab
render_html_fragment() html fragment(used for copy and past)
render_html() complete html
Tools¶
Tools static methods
- convert_js_to_dict JavaScript configuration convert to python dict
- convert_dict_to_js python dict convert to JavaScript configuration
- convert_to_list help user convert DataFrame,Series,ndarray into list
- wrap_template template function used for generate function
echartspy.express¶
pandas DataFrame visualization functions,learn from plotly.express
include bar,scatter,line,pie,candlestick,sankey,parallel,theme_river,heatmap,calendar_heatmap