# Raw HTML

## The method to use <a href="#the-method-to-use" id="the-method-to-use"></a>

The method is `s.plt.html()`

It must contain the following input variables:

```python
html: str
order: int
```

And accepts the following input variables as optional:

```python
rows_size: Optional[int]
cols_size: Optional[int]
padding: Optional[List[int]]
```

## Examples <a href="#examples" id="examples"></a>

### 1. Default Configuration <a href="#id-1.-default-configuration" id="id-1.-default-configuration"></a>

```python
s.plt.html(
    order=0,
    html=(
        "<p style='background-color: #daf4f0';>"
        "Comparing the results of predictions that happened in previous "
        "periods vs reality, so that you can measure the accuracy of our predictor."
        "</p>"
    ) 
)
```

![](/files/F3wILiAaZDOiSJ0uaD4s)

### 2. Title for HTML, changing data, size and padding <a href="#id-2.-title-for-the-chart-and-changing-data" id="id-2.-title-for-the-chart-and-changing-data"></a>

```python
s.plt.html(
    order=0, cols_size=8,
    padding='0,0,0,2',
    html=(
        "<p style='background-color: #daf4f0';>"
        "The goal of this logistics plan is to meet customer "
        "requirements in a timely, cost-effective manner."
        "</p>"
    )
)
```

![Note the space before the component using padding='0,0,0,2', and size with cols\_size=8.](/files/FZHLTq8QsXqzOE21MA8T)

### 3. Adding graphic HTML component <a href="#id-2.-title-for-the-chart-and-changing-data" id="id-2.-title-for-the-chart-and-changing-data"></a>

> Warning: We do not recommend to abuse on this technique since it can remarkably reduce the performance of your Data App, if possible use Shimoku components.

This component is done using:

```python
html = '''<div class="styles_grid_item_padding__MzexJ" style="grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); grid-area: span 1 / span 2 / span 2 / span 3; gap: 32px 16px;">
    <div class="css-upombs" data-testid="GRID_ITEM-92c7bf38-abb2-473e-8e10-7a446a93d9a5" style="grid-area: 1 / 1 / span 2 / span 2; min-height: 352px; max-height: 352px;">
        <div type="HTML" data-testid="REPORT-HTML-92c7bf38-abb2-473e-8e10-7a446a93d9a5" class="css-cgjako">
            <div class="ReportWrapper_container_report__cT7bu">
                <div class="styles_container__html__pgebp">
                    <div class="">
                        <style>.rectangle{height:300px; width:166px; background-color:#13bfa8; border-radius:0px 100px 0px 100px;}</style>
                        <div class="rectangle">
                            <h1 style="color:#fff; padding:10%;">This is a title</h1>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>'''

s.plt.html(
    order=0,
    html=html
)
```

![The code for background color is #13bfa8.](/files/yqv27JsAovJS6uGyc4n7)


---

# 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.shimoku.com/dev/elements/charts/html/raw-html.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.
