Overview
Mas Agua provides a comprehensive suite of chart components powered by ECharts and custom React visualizations. All charts are designed for real-time data display with smooth animations and responsive layouts.Chart Library
Available Chart Types
| Chart Type | Use Case | Real-time | Configurable |
|---|---|---|---|
| Liquid Fill | Tank levels, percentages | Yes | Shape, color, unit |
| Gauge Speed | Pressure, flow rate | Yes | Max value, color |
| Boolean Chart | On/off status, alarms | Yes | Colors, labels |
| Multiple Boolean | Multi-state indicators | Yes | Grid layout |
| Line Chart | Trends over time | Yes | Time range, zoom |
| Pie/Doughnut | Distribution, categories | Yes | Colors, radius |
| Bar Chart | Comparative data | Yes | Dataset format |
| Area Chart | Historical trends | Yes | Color, opacity |
Liquid Fill Chart
Animated liquid-fill gauge for displaying volume and percentage data.
Configuration
Supported Shapes
Multi-Variable Mode
Display multiple related values in a single liquid fill:Color Gradient
Gauge Speed
Speedometer-style gauge for measurements with defined ranges.
Configuration
Arc Configuration
Progress Indicator
Detail Formatter
Boolean Chart
LED-style indicator for binary states.
Configuration
LED Visual Effect
Outer Ring
Multiple Boolean Chart
Grid of multiple boolean indicators.Configuration
Line Chart
Time-series chart with zoom and pan capabilities.
Configuration
Timezone Configuration
Tooltip Formatter
Data Zoom Controls
Toolbox Features
Pie/Doughnut Chart
Categorical data distribution.Configuration
Pie vs Doughnut
Bar Chart
Comparative bar visualization.Dataset Format
Configuration
Area Chart (Home)
Compact area chart for dashboard cards.EChart Wrapper
All charts use a shared EChart wrapper component:Event Handling
Responsive Design
Mobile Detection
Mobile Legend
Performance Optimization
Memoization
Callback Optimization
Chart Dashboard Integration
Using charts in the expandable dashboard view:Auto-refresh on Expand
Best Practices
Chart Selection
Chart Selection
- Liquid Fill: Tank levels, capacity percentages
- Gauge: Pressure, flow, speed measurements
- Boolean: Pump status, valve states, alarms
- Line: Trends, historical data, comparisons
- Pie: Distribution of categories
- Bar: Comparative metrics across periods
Color Schemes
Color Schemes
Use consistent color coding:
- Blue tones: Water-related metrics
- Green: Active/on states, normal operation
- Red: Alarms, critical states
- Gray: Inactive/off states, no data
Data Validation
Data Validation
Always validate data before rendering:
Next Steps
Dashboard
Learn how to compose charts into a dashboard
Maps
Display chart data on geographic maps

