Skip to content

fix(skills): correct Financial Chart API reference and data binding docs#17226

Open
dkalinovInfra wants to merge 1 commit intomasterfrom
dkalinov/fin_chart_skill_fix_1653
Open

fix(skills): correct Financial Chart API reference and data binding docs#17226
dkalinovInfra wants to merge 1 commit intomasterfrom
dkalinov/fin_chart_skill_fix_1653

Conversation

@dkalinovInfra
Copy link
Copy Markdown
Contributor

Closes # IgniteUI/igniteui-cli#1653

Description

Corrects inaccurate API documentation in the Financial Chart (IgxFinancialChartComponent) section of the charts skill reference:

  • Fixed data binding property: itemsSourcedataSource (the component auto-detects OHLC, volume, and date fields)
  • Removed non-existent openMemberPath, highMemberPath, lowMemberPath, closeMemberPath, volumeMemberPath, dateMemberPath inputs from both the Required Properties and API Members sections
  • Added overlayTypes (BollingerBands, PriceChannel) — clarifying they are overlays on the price pane, not indicators
  • Replaced abbreviated indicator names (RSI, MACD) with correct FinancialIndicatorType enum values (e.g. RelativeStrengthIndex, MovingAverageConvergenceDivergence)
  • Added full list of valid FinancialIndicatorType enum values
  • Corrected type names: AxisModeFinancialChartXAxisMode / FinancialChartYAxisMode, added FinancialChartZoomSliderType

Motivation / Context

The charts skill reference contained several inaccuracies that could mislead AI agents (and developers) into using non-existent inputs on IgxFinancialChartComponent, causing runtime errors. Changes were verified against the official Infragistics Financial Chart documentation.

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

Skills — skills/igniteui-angular-components/references/charts.md

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Manually reviewed against the official Infragistics Angular Financial Chart documentation and code samples.

Test Configuration:

  • Angular version: N/A (documentation-only change)
  • Browser(s): N/A
  • OS: Windows

Screenshots / Recordings

N/A — documentation-only change.

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines) — N/A (no code changes)
  • This PR includes API docs for newly added methods/properties (api docs guidelines) — N/A
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Ignite UI for Angular charts skill reference to correct and modernize the documented API surface for IgxFinancialChartComponent, focusing on accurate data binding and indicator/overlay configuration to prevent agents from suggesting non-existent inputs.

Changes:

  • Corrects Financial Chart binding guidance to dataSource and removes member-path inputs that don’t exist on IgxFinancialChartComponent.
  • Clarifies indicators vs overlays (indicatorTypes vs overlayTypes) and expands/normalizes documented enum values (e.g. full FinancialIndicatorType names).
  • Updates documented type names for axis/zoom-related APIs to Financial Chart–specific types.

Comment on lines +262 to +264
indicatorTypes: IgxFinancialIndicatorTypeCollection; // e.g. "MoneyFlowIndex, AverageTrueRange" — use full FinancialIndicatorType enum names, NOT "RSI"/"MACD"
overlayTypes: IgxFinancialOverlayTypeCollection; // "BollingerBands" or "PriceChannel" (overlays, not indicators)
zoomSliderType: FinancialChartZoomSliderType; // None, Auto, Bar, Candle, Column, Line, Area — Auto matches chartType
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block declares indicatorTypes/overlayTypes as IgxFinancialIndicatorTypeCollection / IgxFinancialOverlayTypeCollection, but the inline examples show assigning string literals (e.g. "MoneyFlowIndex, AverageTrueRange"). That’s confusing in a TypeScript signature-style section—consider moving the string examples into an Angular template snippet, or explicitly stating that the input also accepts a comma-separated string at runtime despite the collection type.

Copilot uses AI. Check for mistakes.
Comment on lines +264 to +266
zoomSliderType: FinancialChartZoomSliderType; // None, Auto, Bar, Candle, Column, Line, Area — Auto matches chartType
xAxisMode: FinancialChartXAxisMode; // Ordinal, Time
yAxisMode: FinancialChartYAxisMode; // Numeric, PercentChange
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc now introduces FinancialChartZoomSliderType, FinancialChartXAxisMode, and FinancialChartYAxisMode, but the “Import Paths” section’s example import list doesn’t include these types. Please update the import example (or add a note about where these types come from) so readers can copy/paste a working set of imports.

Copilot uses AI. Check for mistakes.
indicatorTypes: IndicatorType[]; // RSI, MACD, etc.
zoomSliderType: FinancialChartType; // Should match chartType
xAxisTitle: string;
dataSource: Array<any>; // OHLC/volume/date fields are auto-detected — no member-path inputs on this component
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this TypeScript API block, dataSource is typed as Array<any> but the rest of this doc (e.g. dataSource: any[]; above) uses the T[] style. For consistency and readability, use any[] here as well (or a dedicated data item interface).

Suggested change
dataSource: Array<any>; // OHLC/volume/date fields are auto-detected — no member-path inputs on this component
dataSource: any[]; // OHLC/volume/date fields are auto-detected — no member-path inputs on this component

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants