Skip to content

Commit 7ccf706

Browse files
feat(visualizer): improve bar prompt (#13)
1 parent d3ef137 commit 7ccf706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/visualization/visualizers/bar.visualizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You are an expert data visualization assistant. Your task is to create a bar cha
3434
</inputs>`);
3535

3636
context?: string | undefined =
37-
`A bar chart requires data with at least two columns: one for the categories (x-axis) and one for the values (y-axis). Ensure that the category column contains discrete values representing different groups or categories, while the value column contains numerical data that can be compared across these categories. Bar charts can be oriented either vertically or horizontally depending on the data representation needs.`;
37+
`A bar chart requires data with at exactly two columns: one for the categories (x-axis) and one for the values (y-axis). Ensure that the category column contains discrete values representing different groups or categories, while the value column contains numerical data that can be compared across these categories. Bar charts can be oriented either vertically or horizontally depending on the data representation needs.`;
3838

3939
schema = z.object({
4040
categoryColumn: z

0 commit comments

Comments
 (0)