You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -9,11 +9,17 @@ Ignite UI for Angular Charts provides 65+ chart types for data visualization. Ch
9
9
-`@infragistics/igniteui-angular-charts` — Licensed version with same API (ProGet)
10
10
11
11
### Main Chart Components
12
-
-**`IgxCategoryChartComponent`** — Simplified API for area, bar, column charts; auto-detects best visualization
13
-
-**`IgxFinancialChartComponent`** — Stock/candlestick charts with OHLC data, indicators, and volume panes
14
-
-**`IgxDataChartComponent`** — Advanced chart with explicit axis, series, and annotation control (>65 types)
15
-
-**`IgxPieChartComponent`** — Part-to-whole pie and donut charts
16
-
-**`IgxDataPieChartComponent`** — Simplified API version for pie charts
12
+
13
+
> **IMPORTANT — Not Standalone Components**: Chart components from `igniteui-angular-charts` are **NOT** Angular standalone components (they predate the standalone API). They must always be imported via their **NgModule**. Standalone Angular components (Angular 14+) can still import NgModules directly in their `imports` array — this is fully supported.
14
+
15
+
| Component | NgModule to import | Description |
16
+
|---|---|---|
17
+
|`IgxCategoryChartComponent`|`IgxCategoryChartModule`| Simplified API for area, bar, column charts |
18
+
|`IgxFinancialChartComponent`|`IgxFinancialChartModule`| Stock/candlestick charts with OHLC data |
All charts come from `igniteui-angular-charts` entry point:
296
+
> **Chart components are NOT standalone** — always import via their NgModule, never by component class. Standalone Angular components can import NgModules directly in their `imports` array.
297
+
298
+
### NgModule imports (required for all project types)
276
299
277
300
```typescript
278
-
// Category, Financial, Data Chart components
279
-
import {
280
-
IgxCategoryChartComponent,
281
-
IgxFinancialChartComponent,
282
-
IgxDataChartComponent,
283
-
// Series components
284
-
IgxAreaSeriesComponent,
285
-
IgxBarSeriesComponent,
286
-
IgxColumnSeriesComponent,
287
-
IgxLineSeriesComponent,
288
-
// ...
289
-
// Axes
290
-
IgxCategoryXAxisComponent,
291
-
IgxNumericYAxisComponent,
292
-
// Annotations
293
-
IgxCrosshairLayerComponent,
294
-
IgxFinalValueLayerComponent,
295
-
IgxCalloutLayerComponent,
296
-
// Data Legend
297
-
IgxDataLegendComponent,
298
-
// Enums
301
+
// NgModules — import these into your standalone component's 'imports' array
import { IgxCategoryChartModule } from 'igniteui-angular-charts';
376
+
@Component({ imports: [IgxCategoryChartModule] })
377
+
```
378
+
379
+
**Error 2: NG8002 — can't bind to property (incorrect inputs)**
380
+
```
381
+
// ❌ WRONG: using IgxDataChartComponent or generic property names
382
+
<igx-category-chart
383
+
[itemsSource]="data" <!-- Use 'dataSource' instead -->
384
+
[valueMemberPath]="'value'" <!-- Auto-detected for Category Chart -->
385
+
[showDefaultTooltip]="true" <!-- Not a valid input -->
386
+
[transitionDuration]="400"> <!-- Use 'transitionInDuration' -->
387
+
388
+
// ✅ CORRECT: use Category Chart's actual inputs
389
+
<igx-category-chart
390
+
[dataSource]="data"
391
+
chartType="Column"
392
+
[transitionInMode]="'FromZero'"
393
+
[transitionInDuration]="400">
394
+
```
395
+
396
+
**Key difference**: IgxCategoryChartComponent **auto-detects** numeric columns and requires minimal configuration. For fine-grained control over field mapping and series types, use `IgxDataChartComponent` instead (but it requires explicit series and axis components).
0 commit comments