Untitled

 avatar
unknown
plain_text
a month ago
1.7 kB
8
Indexable
prompt = f"""
You are a data analyst expert.

**Task**:
1. Provide a **broad textual overview** (as **plain text**) about what the data represents and what each chart/table will depict.
2. Then produce **one single, self-contained HTML** code block using **Plotly** for each widget:
   - For **donut charts**, use Plotly pie charts with a "hole" parameter (e.g., `hole=0.4`).
   - For **bar charts**, use Plotly bar charts.
   - For **tables**, use Plotly’s table figure.
   - If a widget description hints at another chart type, choose it appropriately.
   - After each chart in the HTML, include a short <p> or <div> explaining that chart (“detailed explanation”).
3. **Do not** put the overview inside the HTML. Return them **separately** in the exact format below:
OVERVIEW_START 
[Your plain-text overview here] 
OVERVIEW_END 
HTML_START 
[Your HTML code here]
HTML_END

No other text should appear outside these markers.

4. Embed Plotly from a CDN in the HTML so it is self-contained.

**Generate all following sections from data**: {sections}

Below is the 'template' array you must process:

{template_data_str}

Here is a high-level note on what the data entails:
This template comprises multiple sections, each containing widgets for key operational checks and performance metrics—compliance (e.g., RBI alignment, regulatory notices), branding (hoarding board visibility), administrative (visitor registers, CCTV, hygiene), support staff details, system/digital checks, customer service, loan processing (TAT, tracker/MIS), business targets, training frequency, and employee boards (survey counts, scores).

Please produce only the final text in the required format now.
"""
Leave a Comment