#91 — Ability to change widget background or other style

Repo: Twill-AI/twill-ai-ui State: closed | Status: done Assignee: meliascosta

Created: 2024-11-13 · Updated: 2025-01-09

Description

See screenshot Image So LlmEngine is sure that it updated widget background. While websocket message contains widget’s echarts_code value:

{"thought_process": "The task is to create a bar chart to display the top 5 vendors by total expenses. The y-axis will represent the vendor names, and the x-axis will represent the total expenses. Since the data is categorical, a horizontal bar chart is appropriate. The background color should be set to red, which can be done by setting the background color in the chart options. The data update interval is not specified, but since this is a static report of expenses, it doesn't need frequent updates. Therefore, I'll set the update interval to a large number, like 3600 seconds (1 hour), assuming the data doesn't change often.\nForecasting endpoint is not set -- will not add forecast", "title": {"text": "Top 5 Vendors by Total Expenses"}, "xAxis": {"type": "value", "name": "Total Expenses"}, "yAxis": {"type": "category", "name": "Vendor Name"}, "series": [{"name": "Total Expenses", "type": "bar", "encode": {"x": ["total_expenses"], "y": ["vendor_name"]}}], "values_update_interval_sec": 3600}

so there is no style attributes here. “thought_process” can’t be parsed by FrontEnd.

AC:

  • Add ability to edit style of widgets through LLM Chat.

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets