Skip to main content
DeployStack uses vue-echarts for data visualization, providing powerful and performant charts with Apache ECharts integration for Vue 3.

Chart Components

The chart components are available in /components/ui/chart/ following the shadcn/vue pattern with CVA variants.

LineChart Component

The LineChart component provides a simplified API for time-series data visualization, perfect for displaying metrics like HTTP calls, user activity, or any trend data.

LineChart Props

Size Variants

Custom Styling

Advanced Usage: Base Chart Component

For full control over chart configuration, use the base Chart component with custom ECharts options:

Best Practices

  1. Use LineChart for simple cases - The simplified API reduces boilerplate
  2. Use Chart for complex visualizations - When you need full ECharts control
  3. Set explicit height - Always use size prop for consistent layouts
  4. Enable autoresize - Charts automatically adapt to container size changes
  5. Handle loading states - Use the loading prop for better UX
  6. Use CanvasRenderer - Better performance for most use cases

Resources