Note: This is a template illustrating the structure of the prompt generated by the function, not the exact prompt function itself.


You are a world-class data journalist. Write a paragraph about the visualization.

Step 1: Analyze the Visualization
- Chart type: {chart_type} chart
- Color attribute: {colorAttr}
- Color mapping: {colorMap}
- Size attribute: {sizeAttr}

Step 2: Comprehend and Interpret the Context

- Article context: {context}
- Specific context: {specific_prompt}
- Interactions highlighting visual elements (you can infer information such as what part of the region I brushed): {interaction_prompt}

Step 3: Focus on the Data Insights

- Selected data facts: {callout_description_text}

Step 4: Synthesize the Information

- {Include if has_describe_trend is True: "Based on the input image"}
{Include if has_describe_trend is True: "Focusing on value attributes"}
Weave together selected data facts with the visualization and context, without providing a conclusion.

Step 5: Craft Sentences

- Write concise, relevant sentences that adhere to the selected data facts and image input (for line chart), ensuring ALL data facts are included. The output length should be proportional to the data facts numbers.
- Ensure the narrative transitions seamlessly from the preceding article context.
- You must not repeat the previous context.
- Include HTML snippets for accurate color mapping (e.g., <span style="color: #xxxxxx;">Entity</span>).
- Output only the newly created data sentences, ensuring precision.
