Canvas Components
ChartJS Component
The ChartJS component allows you to display interactive charts and graphs within the webchat interface. This component leverages the popular Chart.js library for flexible data visualization.
Example Usage
Chart Types
The ChartJS component supports various chart types:
bar- Bar chartsline- Line chartspie- Pie chartsdoughnut- Doughnut chartsradar- Radar charts- And more
Configuration
type- The chart type to displaydata- Chart data configuration with labels and datasetsoptions- Chart options for customization (scales, colors, etc.)
For more detailed configuration options, refer to the Chart.js documentation.