XYChart :: series visibility and dot instead of connected lines

Hi, I have 2 questions about the XYChart.
First, I am trying to figure out how to hide/show series on a XYChart. I was tried to use the series[0].visible=true/false but no success.
My second thing: I want to show only dots on a XYChart without showing connected lines. I want to make sure my settings correct:
I put the param :
series[0].defaultState.visible = false
series[0].render:line
series[0].line.appearance.bullets[0].enabled:true
series[0].line.appearance.bullets[0].render:circle
series[0].line.appearance.bullets[0].fill.color: (#hexcolor)
series[0].line.appearance.bullets[0].stroke.width:0

Thanks

The only issue with your settings is the path to the stroke width.
Instead of :
series[0].line.appearance.bullets[0].stroke.width
It should be:
series[0].line.appearance.stroke.width

As for the visible flag not working, that was found internally in 8.0.3 but looks like it is going to be fixed as part of 8.0.10.

1 Like