Bar Chart Widget
Last updated
Last updated
General Setting
User can change following things in Bar Chart widget:
Name for widget which will be used data reference. For Example, if widget name is 'Bar Chart', then data of widget is referenced as Bar Chart.data
Show title - User can show/hide widget title
Title Color
Background Color
Widget Setting
In Widget Setting option, user can change following parameters:
Index By - Parameter of JSON Object which will define X-Axis Data for Line Chart Widget.
Keys - Key parameter of JSON Object which will define Y-Axis Data for Line Chart Widget.
Y Legend - string value as Y axis legend
Show Legend -Enable to show legends
Grouped -Enable to show bars as grouped. Default bar chart will be stacked bar chart.
Show grid X - Enable to show X axis grid lines
Show grid Y - Enable to show Y axis grid lines
Horizontal - Enable to show bars horizontally
User can select a source mode as MQTT or Action.
Using MQTT
Here, to update data on Bar Chart user can publish JSON array on given data MQTT topic. No need to provide <account_id> while providing the MQTT topic. The JSON object will be as below.
Using Action
Here, to update the Bar Chart widget, output of the action should contain JSON array as given in above example. User can also update the widget either onLoad or periodically by providing refresh interval.
Bar Chart widget does not support any event.
Here, data in below format published on configured topic, will appear as shown in image.