Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 d3.js 构建单列堆积条形图,在某些情况下,我的数据数组可能如下所示:[{x: 0, y:1, y0: 0}, {x: 1, y: 10 , y0: 1}, {x: 2, y:2, y0: 11}] 但在另一个实例中它可能看起来像这样: [{x: 0, y:20, y0: 0}, {x: 1, y: 300, y0: 20}, {x: 2, y:2189, y0: 320}]
我在使用对数刻度时遇到问题。图表的高度始终为 150 像素,堆叠图表的矩形不应小于 10 像素。