![](/img/trans.png)
[英]Using an ordinal scale ('d3.scale.ordinal') for the x-axis in a bar chart
[英]Is there a way to scale x-axis on bar chart (using eCharts) so the 0 is always in the middle?
我也面臨類似的問題,我會對這個解決方案的實現示例感興趣。
您可以為軸設置最小值和最大值。
xAxis: {
max: 100,
min: 0,
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.