We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如题; 附加: html的option 完全和Echart官网一致,echarts.min.js和china.js都是官网下的; 同样的html文件,在web端浏览器查看,尾迹效果正常,但是,在android端用webview加载后显示出来后,尾迹就变成点状了; 谢谢!
用android加载应该和web端查看的尾迹效果一致;
option = { backgroundColor: '#404a59', title : { text: '模拟迁徙', subtext: '数据纯属虚构', left: 'center', textStyle : { color: '#fff' } }, tooltip : { trigger: 'item' }, legend: { orient: 'vertical', top: 'bottom', left: 'right', data:['北京 Top10', '上海 Top10', '广州 Top10'], textStyle: { color: '#fff' }, selectedMode: 'single' }, geo: { map: 'china', label: { emphasis: { show: false } }, roam: true, itemStyle: { normal: { areaColor: '#323c48', borderColor: '#404a59' }, emphasis: { areaColor: '#2a333d' } } }, series: series }
echart官网效果:
android中webview加载后的效果:
在android端就是简单的用webview加载html;------------------------------------ mWebView = (WebView) findViewById(R.id.echart_webView); WebSettings webSettings = mWebView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setJavaScriptCanOpenWindowsAutomatically(true); webSettings.setSupportZoom(true); webSettings.setDisplayZoomControls(true); mWebView.setBackgroundColor(0); // 设置背景色 mWebView.loadUrl("file:///android_asset/js/test.html");
html文件完整内容如下:----------------------------------------------------------
<script src="file:///android_asset/js/echarts.min.js"></script> <script src="file:///android_asset/js/china.js"></script> <style type="text/css"> *{ margin: 0; padding: 0; } html,body{ height: 100%; width: 100%; } </style> </head>
The text was updated successfully, but these errors were encountered:
问题解决了么?我这也出现了这样的问题
Sorry, something went wrong.
line trail 绘制方式目前已经优化,移动端效果应该有所提升。请在master 最新代码中测试,或者等下一个版本查验。如果有任何问题,可以reopen issue
No branches or pull requests
One-line summary [问题简述]
如题;
附加:
html的option 完全和Echart官网一致,echarts.min.js和china.js都是官网下的;
同样的html文件,在web端浏览器查看,尾迹效果正常,但是,在android端用webview加载后显示出来后,尾迹就变成点状了;
谢谢!
Version & Environment [版本及环境]
Expected behaviour [期望结果]
用android加载应该和web端查看的尾迹效果一致;
ECharts option [ECharts配置项]
Other comments [其他信息]
echart官网效果:
android中webview加载后的效果:
在android端就是简单的用webview加载html;------------------------------------
mWebView = (WebView) findViewById(R.id.echart_webView);
WebSettings webSettings = mWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
webSettings.setSupportZoom(true);
webSettings.setDisplayZoomControls(true);
mWebView.setBackgroundColor(0); // 设置背景色
mWebView.loadUrl("file:///android_asset/js/test.html");
html文件完整内容如下:----------------------------------------------------------
<title>ECharts</title>The text was updated successfully, but these errors were encountered: