I have a problem in display my chart. I have X element passed one number. e.g first it will be in 1 but the second bar it will be in 3. What happen with my code?

What are the possible values returned by the dataChanged event for the tag "onoff" ?

3 values. they are 1, 0, and 2. that numbers is request and response from firebase. I am making request and response from microkontroller to software.

do you know how to safe data in tinydb permanently in my device. last one, do you know how to make every single bar have a different color depend on the value?

this is my new source code.

See Bluetooth Client Polling Rate - #11 by ABG

for the format favored by the AI2 Graph component's TinyDB GraphData subcomponent.