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.
我正在使用RGraph制作基于此示例的堆叠条形图。当我有超过 16 个组时,我收到此错误:
错误:属性宽度:负值无效。(“-0.882352941176471”)
我还尝试使用此类似图表增加组的数量。有了这个,我不能有超过八组。为什么会这样?这可能是 RGraph 的限制吗?
发生这种情况是因为我的 div 宽度设置为比包含每个条所需的窄选项。为了解决这个问题,我增加了封闭 div 的宽度。