Conditional display not working

I have this in my sitemap

Frame label=“Temperature” {
Text item=Door_Temperature
Switch item=Temperature_Chart_Period icon=“temperature” label=“Chart Period” mappings=[0=“Hour”, 1=“Day”, 2=“Week”]
Chart item=Temperature_Chart period=h refresh=300 visibility=[Temperature_Chart_Period==0, Temperature_Chart_Period==“Uninitialized”]
Chart item=Temperature_Chart period=D refresh=1800 visibility=[Temperature_Chart_Period==1]
Chart item=Temperature_Chart period=W refresh=3600 visibility=[Temperature_Chart_Period==2]
}

I am hoping I can choose the switch and it shows the appropriate chart.
The switch seems to do nothing and all charts are always shown.
Can someone tell me where I have the wrong syntax?
Thanks
Andrew

found the answer here:

This should work. I have build the same logic.

Items

Number 	Ch_Vt_ChartIntervall "Anzeigeintervall" <sysChart>

and sitemap like your example. Maybe you Temperature_Chart_Period is not defined as a number in the items file

Thomas