Please note that this control has been deprecated and replaced with the Grid component, and as such, we recommend migrating to that control. This will not be receiving any new features, bug fixes will be deprioritized. For help or questions on migrating your codebase to the Data Grid, please contact support.
Web Components Column Sparkline
The Ignite UI for Web Components Data Table / Data Grid supports a Template Column which provides you to a way to embed other components such as Ignite UI for Web Components sparkline component. Refer to the Column Types topic for other types of columns supported in the IgcGridComponent component.
<!DOCTYPE html><html><head><title>SparklineGrid</title><metacharset="UTF-8" /><linkrel="shortcut icon"href="https://static.infragistics.com/xplatform/images/browsers/wc.png" ><linkrel="stylesheet"href="https://fonts.googleapis.com/icon?family=Material+Icons" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Kanit&display=swap" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Titillium Web" /><linkrel="stylesheet"href="https://static.infragistics.com/xplatform/css/samples/shared.v8.css"type="text/css" /></head><body><divid="root"><divclass="container sample"><igc-data-gridid="grid"width="100%"height="100%"row-height="90"auto-generate-columns="false"><igc-text-columnfield="ProductID"header-text="ID"width="*>110"horizontal-alignment="Center"></igc-text-column><igc-text-columnfield="ProductName"header-text="Product"width="*>140"></igc-text-column><igc-numeric-columnfield="ProductPrice"header-text="Price"width="*>110"positive-prefix="$"show-grouping-separator="true"min-fraction-digits="2"></igc-numeric-column><igc-template-columnid="historyColumn"field="OrderHistory"header-text="Order History"width="*>180"padding-top="10"padding-bottom="10"horizontal-alignment="Center"></igc-template-column><igc-numeric-columnfield="OrderCount"header-text="Orders"width="*>110"horizontal-alignment="Center"></igc-numeric-column><igc-image-columnfield="CountryFlag"header-text="Country"width="*>120"is-editable="false"content-opacity="1"horizontal-alignment="Center"padding-top="10"padding-bottom="10"></igc-image-column><igc-text-columnfield="Status"width="*>120"horizontal-alignment="Center"></igc-text-column></igc-data-grid></div></div><!-- This script is needed only for parcel and it will be excluded for webpack -->
<% if (false) { %><scriptsrc="src/index.ts"></script><% } %>
</body></html>html
/* shared styles are loaded from: *//* https://static.infragistics.com/xplatform/css/samples */css
Like this sample? Get access to our complete Ignite UI for Web Components toolkit and start building your own apps in minutes. Download it for free.