Skip to content

Commit ec5f761

Browse files
authored
Merge pull request #2164 from mito-ds/fix/chart-wiz=tuple-string
Added Rule for Alpha Values in Chart
2 parents e01be91 + 189dd06 commit ec5f761

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mito-ai/mito_ai/completions/prompt_builders/prompt_constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
- All imports must appear at the top, before the chart configuration section.
2121
- Variables with multiple words should be underscore-separated.
2222
- All colors should be in hex format (e.g., "#3498db"). Use quotes around the hex string: COLOR = "#3498db" or COLOR = '#3498db'. Do NOT nest quotes.
23+
- Never use RGB/RGBA tuples/lists for colors (e.g. (0, 0.4, 0.8, 0.8) is forbidden).
24+
- If transparency is needed, store it separately as ALPHA = 0.8 and apply it in code (e.g. to_rgba(HEX_COLOR, ALPHA)).
2325
- Variables can only be strings, numbers, booleans, tuples, or lists.
2426
- NEVER include comments on the same line as a variable assignment. Each variable assignment must be on its own line with no trailing comments.
2527
- For string values, use either single or double quotes (e.g., TITLE = "Sales by Product" or TITLE = 'Sales by Product'). Do not use nested quotes (e.g., do NOT use '"value"').

0 commit comments

Comments
 (0)