Web Components Data Aggregations
In the Ignite UI for Web Components IgcCategoryChartComponent control Data Aggregations feature allows you to group data in the chart by unique values on the XAxis and then sort those groups. You may then apply summaries which will be reflected by the range of the YAxis and will be displayed in the tooltip when hovering the series.
Web Components 데이터 집계 예
다음 예시는 다음을 묘사합니다. 기둥 차트 그 그룹은 국가 구성원에 의해XAxis 각 데이터 항목 내에서 Product, MonthName, Year 등 다른 속성으로 변경하여 판매 데이터를 집계할 수 있습니다. 또한 그룹화된 부동산에 대해 원하는 순서를 얻기 위한 요약 및 정렬 옵션도 제공됩니다.
참고로, 드롭다운initialSummariesgroupSorts에 있는 축약된 함수들은 할당한 속성에 따라 올바른 결과를 얻기 위해 앞으로도 적용된 것입니다. 예를 들어, Sum(sales) as Sales | 판매 설명
<igc-category-chart
id="chart"
initial-groups="country"
initial-summaries="Sum(sales) as Sales"
group-sorts="Sales Desc">
</igc-category-chart>
API References
다음은 위 섹션에서 언급된 API 멤버 목록입니다.
initialSortDescriptionsinitialSortssortDescriptionsinitialGroupsinitialGroupDescriptionsgroupDescriptionsinitialSummariesinitialSummaryDescriptionssummaryDescriptionsinitialGroupSortDescriptionsgroupSortsgroupSortDescriptions
[!Note] Chart Aggregation will not work when using
includedProperties|excludedProperties. These properties on the chart are meant for non-aggregated data. Once you attempt to aggregate data these properties should no longer be used. The reason it does not work is because aggregation replaces the collection that is passed to the chart for render. The include/exclude properties are designed to filter in/out properties of that data and those properties no longer exist in the new aggregated collection.