# SimpleBar

The `SimpleBar` is a type of `BarGroup` which accepts only one `yValue` and tells the Widget to draw a Single Bar of height representing the `yValue`.

{% tabs %}
{% tab title="Code Sample" %}

```dart
...
import 'package:chart_it/chart_it.dart';

class TestBarCharts extends StatefulWidget {
  const TestBarCharts({Key? key}) : super(key: key);

  @override
  State<TestBarCharts> createState() => _TestBarChartsState();
}

class _TestBarChartsState extends State<TestBarCharts> {
  @override
  Widget build(BuildContext context) {
    return BarChart(
      ... // any chart configs
      data: BarSeries(
        barData: <BarGroup>[
          SimpleBar(
            xValue: 1,
            yValue: BarData(yValue: 23),
          ),
          SimpleBar(
            xValue: 2,
            yValue: BarData(yValue: 44),
          ),
          SimpleBar(
            xValue: 3,
            yValue: BarData(yValue: 35),
          ),
        ],
      ),
    );
  }
}
```

{% endtab %}

{% tab title="Result" %}

<figure><img src="/files/mOEIDJLKDK0U7JeKoBMx" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### Class Properties

<table><thead><tr><th width="142">Name</th><th width="272">Type</th><th width="200">Required</th><th>Default Value</th></tr></thead><tbody><tr><td>xValue</td><td><code>num</code></td><td><mark style="color:red;">true</mark></td><td>-</td></tr><tr><td>yValue</td><td><code>num</code></td><td><mark style="color:red;">true</mark></td><td>-</td></tr><tr><td>padding</td><td><code>double</code></td><td><mark style="color:blue;">false</mark></td><td><code>10.0</code></td></tr><tr><td>style</td><td><code>BarDataStyle?</code></td><td><mark style="color:blue;">false</mark></td><td><code>null</code></td></tr></tbody></table>


---

# 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://flutter.wednesday.is/charts/guides/cartesian-charts/charts/bar-chart/bar-groups/simplebar.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.
