Charts provide powerful visual representations of your water treatment data. The Centinela system supports multiple chart types, each designed for specific monitoring scenarios.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.
Available Chart Types
The system offers 11 different chart types to visualize your monitoring data:Liquid Fill Charts
Liquid Fill Charts
Visualize percentage or absolute values with animated wave effects.Supported Shapes:
- Circle (ID: 1)
- Rectangle (ID: 4)
Percentage Charts
Percentage Charts
Simple circular progress indicators without animations.Chart ID: 2Use Cases: Quick status indicators, simple progress metrics
Pie Charts
Pie Charts
Multi-category donut charts with rounded edges.Chart ID: 3Use Cases: Distribution visualization, comparative analysis
Line Charts
Line Charts
Time-series data with overlapping lines.Chart ID: 6Use Cases: Historical trends, multi-variable comparison
Speed Gauge
Speed Gauge
Gauge-style speedometer visualization.Chart ID: 8Use Cases: Flow rates, pressure monitoring, speed indicators
Boolean Charts
Boolean Charts
LED-style on/off indicators with customizable colors.Chart ID: 9Use Cases: Pump status, valve states, binary sensors
Multiple Boolean Charts
Multiple Boolean Charts
Display multiple LED indicators in a single chart.Chart ID: 10Use Cases: System overview, multi-pump status
Board Chart
Board Chart
Comprehensive dashboard combining charts, pump states, and room status.Chart ID: 11Use Cases: Central monitoring, control room displays
Creating a Chart
Navigate to Chart Configuration
Access the configuration menu and select “Charts” to view the chart type selector.
Select Chart Type
Choose the appropriate chart type based on your visualization needs. Each card displays a preview and description.
Chart Configuration Reference
Simple Charts (Liquid Fill, Gauge, Circle)
These charts display a single variable with visual styling options.Display name for the chart (minimum 1 character)
ID of the InfluxDB variable to visualize
Maximum value for percentage calculations
Display order on the dashboard (minimum 1)
Hexadecimal color code for the chart
Unit of measurement (e.g., “L”, “m³”, “bar”)
Display value as percentage or absolute number
Show border around the chart
Shape style:
circle or rect (for Liquid Fill charts)Boolean Chart
Visualizes binary states with customizable LED colors and labels.Chart title
Label displayed when state is ON
Label displayed when state is OFF
Hexadecimal color for ON state (must be valid hex)
Hexadecimal color for OFF state (must differ from colorOn)
Dashboard display order
Pie Chart
Display multiple variables as proportional segments.Chart title
Array of category objects defining each segment
Variable ID from InfluxDB
Display name for the category
Hexadecimal color for the segment
Line Chart
Time-series visualization with configurable date ranges.Chart title
X-axis time configuration
Time range type:
relative or absoluteArray of variables to plot (minimum 1 variable)
All timestamps should be in ISO 8601 format for absolute date ranges.
Chart Configuration Object
Theconfigs object in /src/modules/Charts/configs/configs.js defines the requirements for each chart type:
API Endpoints
Chart configuration uses the following endpoints:| Endpoint | Method | Description |
|---|---|---|
/charts | POST | Create new chart |
/charts/:id | GET | Retrieve chart configuration |
/charts/:id | POST | Update existing chart |
/chartSeries | POST | Create line chart |
/chartSeries/:id | POST | Update line chart |
/pie | POST | Create pie chart |
/src/modules/Charts/views/ConfigGraphic.jsx:79-86
Best Practices
Choose the Right Chart Type
Choose the Right Chart Type
- Use Boolean charts for binary states (pumps, valves)
- Use Liquid Fill for tank levels and capacities
- Use Line charts for historical trends
- Use Gauge for rate-based metrics (flow, pressure)
Color Selection
Color Selection
- Maintain consistency across similar metrics
- Use green (#00FF00) for normal/on states
- Use red/orange for warnings
- Ensure sufficient contrast for readability
Performance Considerations
Performance Considerations
- Limit line charts to 5-7 variables for optimal rendering
- Use appropriate sampling periods for historical data
- Set reasonable date ranges to avoid overwhelming the UI
Charts are automatically added to the dashboard based on their
order parameter. Lower numbers appear first.