Ctrl + K
Get StartedStylesCoreCompsCDK
Actions
Action Sheet
Button
Button Group
Context Menu
Dropdown Button
Menu
Side Menu
Form & Editors
Checkbox
Color Box
Color Palette
Cron Job
Date & Time Box
Date & Time Picker
Flow Chart
Form
Image Editor
Json Viewer
Kanban
Number Box
One time password
Paint
Password Box
Phone Box
Query Builder
Range Slider
Rate Picker
Rest Api Generator
Scheduler
Search Box
Select Box
Selection List
Step Wizard
Switch
Tag Box
Text Box
Textarea
Time Duration
Tree View
Uploader
WYSIWYG
Navigation & Layout
Accordion
Avatar
Badge
Bottom Navigation
Breadcrumb
Calendar
Chips
Circular Progress
Comment
Conversation
Data Pager
Data Table
Drawer
File Explorer
Grid Layout Builder
Image
KBD
List
Loading
Map
Media Viewer
Navbar
Picker
Popover
Popup
Progress Bar
Qrcode
Rail Navigation
Result
Skeleton
Sliding Item
Tabs
Tag
Time Line
Toolbar
Tooltip
Dialog & Notifications
Alert
Dialog
Loading Dialog
Modal
Notification
Toast
Charts
Bar Chart
Chart Legend
Donut Chart
Gauge Chart
Hierarchy Chart
Line Chart

Chart Legend

import { AXChartLegendComponent } from '@acorex/charts/chart-legend'; Interactive legend that connects to charts for enhanced user experience

Donut Chart with Legend

Example of using chart legend with donut chart
Product A30
Product B25
Product C20
Product D15
Product E10

Click on legend items to show/hide chart segments. Hover over items to highlight corresponding segments.

Legend Options
vertical

Bar Chart with Legend

Example of using chart legend with bar chart
Product A3030%
Product B2525%
Product C2020%
Product D1515%
Product E1010%

The bar chart implements the same legend interface as the donut chart, providing consistent interaction.

Bar Chart Legend Options
vertical

Line Chart with Legend

Example of using chart legend with line chart
JanFebMarAprMayMonth020406080100120140160180200220Amount
Monthly Sales750
Monthly Expenses470

The line chart also implements the legend interface for consistent interaction.

Line Chart Legend Options
vertical

Usage

A simple example of using chart-legend
Preview
Code

Copyright ©2017-2025 ACoreX Labs Inc.

On this page