I added linechart.validateNow();
after the linechart.invalidateSeriesStyles(); and all is fine now (I thought I had tried that earlier).
I added linechart.validateNow();
after the linechart.invalidateSeriesStyles(); and all is fine now (I thought I had tried that earlier).