使用以下代码时;
var pvChart = new pv.Panel();
pvChart.width(200);
pvChart.height(200);
var pvBar = pvChart.add(pv.Bar);
pvBar.data([1,2,3]);
console.log(pvBar.fillStyle());
我得到了错误;
无法调用未定义的方法“实例”
它指的是pvBar.fillStyle()
. 使用它我想检索条填充样式以供以后使用。谁能告诉我这个错误的原因以及如何解决这个问题?