You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/06/30 01:15:52 UTC

[GitHub] [incubator-echarts] cddsgtc edited a comment on issue #11023: 柱形图(bar)图例数据出现“0”时不能渲染图表

cddsgtc edited a comment on issue #11023:
URL: https://github.com/apache/incubator-echarts/issues/11023#issuecomment-651457530


   我也遇到了同样问题但是已经解决。
   **原因**
   我个人使用的是dataset来指定获取数据,
   在dataset中的末尾多了一个’,‘(逗号)。
   
   ```ts
   dataset: {
   			source: [
   				[ '山东', 901003 ],
   				[ '江苏', 1000000 ],
   				[ '广东', 1200000 ],
   				[ '宁夏', 500021 ],
   				[ '甘肃', 603212 ],
   			],
   		},
   ```
   改为
   ```ts
   dataset: {
   			source: [
   				[ '山东', 901003 ],
   				[ '江苏', 1000000 ],
   				[ '广东', 1200000 ],
   				[ '宁夏', 500021 ],
   				[ '甘肃', 603212 ]
   			]
   		},
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org