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.
在 pchart 中是否有可能只有一个值的条形图?我有一个条形图,可以正确显示 1 系列具有任意数量的值,但是当系列仅包含一个值时 pchart 崩溃。
如果有人让我知道这将阻止我进一步调查。
谢谢你。
是的。基于 v1.27d,您可以修改他们的文档示例,使其在$DataSet
$DataSet
$DataSet->AddPoint(array(1),"Serie1");
可能需要使用图表的setFixedScale功能来确保它正确显示。
setFixedScale