eeeqxxtg commented on issue #9560: URL: https://github.com/apache/echarts/issues/9560#issuecomment-906247931
遇到了同一个问题,尝试了很久,不能很好解决这个问题,求优化 在340X200的容器里实例化echarts ```html <div id="container" style="width: 340px; height: 200px; "></div> ``` 使用下面的option ```js option = { tooltip: { show: true, trigger: 'axis' }, legend: { show: true, type: 'scroll' }, grid: { left: 8, right: 8, top: 38, bottom: 32, containLabel: true }, xAxis: { data: [ '2014-03-31', '2014-06-30', '2014-09-30', '2014-12-31', '2015-01-31', '2015-02-28', '2015-03-31', ] }, yAxis: { type: 'value', axisLine: { show: true }, axisTick: { show: true }, splitLine: { show: false } }, series: [ { type: 'bar', name: '营业收入', barMaxWidth: 20, data: [ { value: 62.29 }, { value: 79.36 }, { value: 51.89 }, { value: 61.43 }, { value: 70.29 }, { value: 25.89 }, { value: 69.85 }, ] }] }; ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org