Centinela provides a powerful charting system built on Apache ECharts, enabling you to create sophisticated visualizations of your water treatment data.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CspmIT/centinela-front/llms.txt
Use this file to discover all available pages before exploring further.
Chart Types
Centinela supports multiple chart types, each optimized for different data visualization needs:Liquid Fill Percentage
Animated liquid-filled containers that visually represent levels, volumes, or percentages.Shape Options
Circle, rectangle, rounded rectangle, triangle, diamond, arrow, and pin shapes available.
Display Modes
Show as percentage or absolute value with custom units.
- Gradient color fills (light blue to deep blue)
- Animated wave motion (4-second period)
- Configurable border and outline
- Support for primary and secondary values
- Automatic “Sin datos” state when offline
Configuration Example
Configuration Example
Gauge Speed Charts
Traditional speedometer-style gauges with needle indicators for flow rates, pressure, and speed measurements. Visual Elements:- 240-degree arc (210° to -30°)
- Gradient progress bar (22px width)
- Central anchor point with color-coded border
- Customizable labels and descriptions
- Split lines for scale references
Usage Example
Usage Example
Circle Percentage Gauges
Clean, minimal circular progress indicators ideal for capacity monitoring. Features:- 360-degree circular progress (90° start)
- Rounded cap style
- 24px ring width
- Gradient color progression
- Center-aligned percentage display
Boolean LED Indicators
Visual status indicators that display on/off states with glowing LED effects.On State
Bright gradient with customizable color, enhanced shadow glow effect, displays custom “on” text.
Multiple Boolean Chart
Display multiple LED indicators in a grid layout, perfect for equipment status panels.Multi-LED Configuration
Multi-LED Configuration
Line Charts
Time-series visualizations for historical data analysis with advanced features.Interactive Zoom
Zoom into specific time ranges with mouse wheel or slider controls.
Data Export
Export charts as images or view data in table format.
Multi-Series
Plot multiple variables on the same timeline for comparison.
Mobile Optimized
Responsive layout with adjusted controls for mobile devices.
- Time zone support (America/Argentina/Buenos_Aires)
- Automatic null value handling with
connectNulls - Data zoom with minimum 2-minute span
- Interactive legend with scroll support
- Tooltip with formatted timestamps
- Restore to default view
- Save as image
Line charts automatically adjust sampling periods based on the selected time range to optimize performance and readability.
Pie/Doughnut Charts
Categorical data distribution with interactive tooltips.Bar Charts
Comparative data visualization with dataset support.Chart Configuration
All charts are configured through the administrative interface and stored in the database with the following structure:Configuration Components
- Chart Metadata
- Props (ChartConfig)
- Data (ChartData)
- Type: Chart component identifier
- Name: Display title
- Category: Dashboard or Board chart
Variable Binding
Charts connect to InfluxDB through variable configurations:Real-Time Updates
Charts update automatically through two mechanisms:Data Handling
Validation
All numeric inputs are validated:Fallback States
Performance Considerations
Optimization techniques:- Component memoization prevents unnecessary re-renders
- Batch API requests reduce network overhead
- Conditional animation (disabled when no data)
- Efficient ECharts rendering engine
- Responsive sizing with CSS transforms
Creating Custom Charts
Chart Configuration Guide
Learn how to configure charts, bind variables, and customize visualizations in the Charts Configuration section.
Export and Analysis
Line charts support data export in multiple formats:- Image Export: Save chart as PNG for reports
- Table View: View raw data in tabular format
- Zoom Analysis: Focus on specific time ranges for detailed inspection
Exported images include the “+Agua” watermark and timestamp information for documentation purposes.
