File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ declare function RNEChartsPro(props: {
55 ref ?:object ;
66 fontFamilies ?: Array < object > ;
77 themeName ?: string ;
8+ renderMode ?: string ;
89 extension ?: object ;
910 customMapData ?: object ;
1011 webViewSettings ?: any ;
Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ export default function renderChart(props) {
2222 echarts.registerMap('world', ${ JSON . stringify (
2323 props . customMapData || getMapJSON ( props ?. option ?. geo ?. length )
2424 ) } );
25- const myChart = echarts.init(eChartsContainer, '${ props . themeName } ');
25+ const myChart = echarts.init(eChartsContainer, '${
26+ props . themeName
27+ } ',{ renderer: '${ props . renderMode ? props . renderMode : "canvas" } ' });
2628 // The function created by "new Function" cannot access outer scope variables,
2729 // so declare "formatterVariable" as a global value when without "let", "const" or "var" defined.
2830 ${ enableParseStringFunction ? "" : "let " } formatterVariable = ${ toString (
You can’t perform that action at this time.
0 commit comments