Extjs 以特定颜色渲染Sencha图表中的数据点

Extjs 以特定颜色渲染Sencha图表中的数据点,extjs,sencha-touch,sencha-touch-2,sencha-touch-2.1,Extjs,Sencha Touch,Sencha Touch 2,Sencha Touch 2.1,我希望根据存储中的值,以不同的颜色呈现图表中的某些数据点。我遇到的问题是,不仅标记以不同的颜色渲染,而且标记的线条也以不同的颜色渲染,正如您在这把小提琴中看到的: 有没有办法只改变实际数据点的颜色 提前谢谢 将渲染器功能更改为- renderer: function (sprite, config, rendererData, index) { var items = rendererData.store.getData().items;

我希望根据存储中的值,以不同的颜色呈现图表中的某些数据点。我遇到的问题是,不仅标记以不同的颜色渲染,而且标记的线条也以不同的颜色渲染,正如您在这把小提琴中看到的:

有没有办法只改变实际数据点的颜色


提前谢谢

将渲染器功能更改为-

renderer: function (sprite, config, rendererData, index) {
                     var items = rendererData.store.getData().items;
                     if (items[index].data.hidden && config.type ==='marker') { // also check for config.type (data point will return marker as type and the lines will return line)
                     return { strokeStyle: 'yellow', lineWidth: 5 }; // added a lineWidth so that you can see the different color easily
                 }
                }

非常感谢,你救了我一天!