Skip to content

React - Incorrect generation of CategoryChartType.Bar when using the MCP server #1608

@viktorkombov

Description

@viktorkombov

Description

When generating React applications with charts via the igniteui-cli MCP server, the generated code sometimes uses an invalid chart type: CategoryChartType.Bar (or "Bar"), which is not part of the Ignite UI for React API.


Error

Invalid CategoryChartType value: Bar

Image

Actual Generated Code

<IgrCategoryChart
  dataSource={data}
  chartType="Bar"
/>

Expected

A valid CategoryChartType value (e.g. Column) instead of Bar.


Reproduction

Two separate prompts with which I have produced this behavior are attached below:

prompt1.txt, prompt2.txt

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions