You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I test "Candlestick shanghai index" chart in echarts example. This is the url "https://ecomfe.github.io/echarts-examples/public/editor.html?c=candlestick-sh". I click the "Download" button to save the html file into local. Then I compare the chart to render on canvas and svg.
The first result is the default html. It looks good.
I only make below changes to support svg in the html.
var myChart = echarts.init(dom, null, {renderer: 'svg'});
The svg chart has three issues different to canvas chart.
(1) Title "上证指数" is out of top range.
(2) The text data for xAxis are shown in the xAxis line. And the text data are not same in both results.
(3) The value "2445" is out of the ball.
Can anyone give some suggestions? Thanks.
The text was updated successfully, but these errors were encountered:
Hi. What's the version of your SVG ECharts? I tried with the latest version and it's the same as canvas result.
@Ovilia
I just download the example from "https://ecomfe.github.io/echarts-examples/public/editor.html?c=candlestick-sh". It is using "<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script>".
I only make below changes to support svg in the html.
var myChart = echarts.init(dom, null, {renderer: 'svg'});
It still has these issues.
Are there anything else do I need change?
I test "Candlestick shanghai index" chart in echarts example. This is the url "https://ecomfe.github.io/echarts-examples/public/editor.html?c=candlestick-sh". I click the "Download" button to save the html file into local. Then I compare the chart to render on canvas and svg.
The first result is the default html. It looks good.
I only make below changes to support svg in the html.
var myChart = echarts.init(dom, null, {renderer: 'svg'});
The svg chart has three issues different to canvas chart.
(1) Title "上证指数" is out of top range.
(2) The text data for xAxis are shown in the xAxis line. And the text data are not same in both results.
(3) The value "2445" is out of the ball.
Can anyone give some suggestions? Thanks.
The text was updated successfully, but these errors were encountered: