Use a bar chart the simpler way - dashboard 2

Hello everyone,

I'm trying to visualize status data in a simpler form on bar chart.
Axis X , the devices with string names, device 1, 2, 3.
Axis Y, is online status, True or False, 1 or 0.

It seems to me that the object needs a lot more data to work with this, and i can't see in the documentation a simpler way to pass data.

In my inject node i have this:

In chart settings i have this:

But is not showing the data horizontally.

any comments appreciated.

Pass your data as msg.payload, an array of objects, such as you might acquire from a database query:

In the chart node use key: device and key:status

Thank you jbudd, looks like is different series because of different colours, but does the job.

Try specifying the series as a string.

There is an example in the chart docs on flowfuse.