diff --git a/chartspy/echarts.py b/chartspy/echarts.py index 81652f1..45889a0 100644 --- a/chartspy/echarts.py +++ b/chartspy/echarts.py @@ -5,8 +5,8 @@ from .base import Tools, Html -ECHARTS_JS_URL = "https://cdn.staticfile.org/echarts/5.3.2/echarts.min.js" -ECHARTS_GL_JS_URL = "https://cdn.staticfile.org/echarts-gl/2.0.8/echarts-gl.min.js" +ECHARTS_JS_URL = "https://cdn.staticfile.org/echarts/5.5.1/echarts.min.js" +ECHARTS_GL_JS_URL = "https://cdn.staticfile.org/echarts-gl/2.0.9/echarts-gl.min.js" class Echarts(object): diff --git a/chartspy/express/g2plot.py b/chartspy/express/g2plot.py index eee81ce..f8b9ca6 100644 --- a/chartspy/express/g2plot.py +++ b/chartspy/express/g2plot.py @@ -386,11 +386,11 @@ def sankey_g2plot(df, source_field=None, target_field=None, weight_field=None, w def heatmap_g2plot(df, x_field=None, y_field=None, color_field=None, width='100%', height='500px'): options = {'xField': x_field, 'yField': y_field, 'colorField': color_field} - options["meta"]: { - x_field: { + options["meta"]= { + "x_field": { "type": "cat" }, - y_field: { + "y_field": { "type": "cat" }, } diff --git a/chartspy/g2plot.py b/chartspy/g2plot.py index 3e70a5f..9990059 100644 --- a/chartspy/g2plot.py +++ b/chartspy/g2plot.py @@ -7,7 +7,7 @@ from .base import Tools, Html -G2PLOT_JS_URL: str = "https://cdn.staticfile.org/g2plot/2.4.16/g2plot.min.js" +G2PLOT_JS_URL: str = "https://cdn.staticfile.org/g2plot/2.4.25/g2plot.min.js" # language=HTML diff --git a/setup.py b/setup.py index 5999613..5403b57 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ def get_install_requires(): setup( name="chartspy", - version="2.2.1", + version="2.2.2", url="https://chartspy.icopy.site/", description="echarts g2plot klinechart highcharts tabulator python wrapper", keywords='echarts g2plot klinechart highcharts tabulator python ',