Canvas Components
ChartJS Component
Explains the Chart.js canvas component for hosted Webchat. Useful for interactive charts, graphs, analytics, and visual summaries in chat.
The ChartJS component displays interactive charts and graphs in the webchat interface, using the Chart.js library for 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 configuration options, see the Chart.js documentation.