# Radar Chart Widget

**General Setting**

User can change following things in Radar Chart widget:

* Name for widget which will be used data reference. For Example, if widget name is 'Radar Chart', then data of widget is referenced as Radar Chart.data
* Show title - User can show/hide widget title
* Title Color
* Background Color

![Configure Radar Chart Widget](/files/6f4uHFX13xrdSjSsS3iq)

**Widget Setting**

In Widget Setting option, user can change following parameters:

* Index By - key parameter of JSON Object which will used as Index for Radar Chart.
* Keys - key parameter of JSON Object which will define parameters for Radar Chart. Here, user can provide label and color for each key.
* Show Legend - Enable to show legends

![Configure Radar Chart Widget](/files/u7v9T7HjLDJ7zKHbBoh5)

#### Source <a href="#source" id="source"></a>

User can select a source mode as MQTT or Action.

**Using MQTT**

Here, to update data on Radar Chart user can publish JSON array on given **data** MQTT topic. No need to provide \<account\_id> while providing the MQTT topic. The JSON array will be as below.

```
// Example

[
  {
    "taste": "fruity",
    "a": 94,
    "b": 114,
    "c": 31
  },
  {
    "taste": "bitter",
    "a": 22,
    "b": 65,
    "c": 88
  },
  {
    "taste": "heavy",
    "a": 108,
    "b": 47,
    "c": 119
  },
  {
    "taste": "strong",
    "a": 30,
    "b": 84,
    "c": 94
  },
  {
    "taste": "sunny",
    "a": 74,
    "b": 114,
    "c": 60
  }
]

// here, 'taste' is set as Index By value and 'a','b' and 'c' are set as keys with 
respective labels and colors.
```

![Configure Radar Chart Widget](/files/eocaX1EidhGF9LbCT0H5)

**Using Action**

Here, to update the Radar 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.

![Configure Radar Chart Widget](/files/2p8GE9hpImVGMbwEgZpk)

#### Event Handling

Radar Chart widget does not support any event.

#### Example

Here, data in below format published on configured topic, will appear as shown in image.

```
// Example

[
  {
    "taste": "fruity",
    "a": 94,
    "b": 114,
    "c": 31
  },
  {
    "taste": "bitter",
    "a": 22,
    "b": 65,
    "c": 88
  },
  {
    "taste": "heavy",
    "a": 108,
    "b": 47,
    "c": 119
  },
  {
    "taste": "strong",
    "a": 30,
    "b": 84,
    "c": 94
  },
  {
    "taste": "sunny",
    "a": 74,
    "b": 114,
    "c": 60
  }
]

// here, 'taste' is set as 'Index By' value and 'a','b' and 'c' are set as keys with respective labels and colors.
```

![MQTT Data for Radar Chart](/files/ry6KDZJ2dS7GFIy6awNe)

![Radar Chart Example](/files/f6EH4BrnqySetd8U6l0I)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thingsup.io/widgets/radar-chart-widget.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
