TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/CspmIT/mas-agua-front/llms.txt
Use this file to discover all available pages before exploring further.
BoardChart component is a complex dashboard layout that combines multiple visualization types into a single view. It’s designed for comprehensive system monitoring with real-time data updates.
Component location
Source:/src/modules/Charts/components/BoardChart.jsx:1
Overview
BoardChart organizes data into three main sections:- Top charts (left and right): Large visualization cards using LiquidFill or CirclePorcentaje
- Pump monitoring section: Grid of pump status cards with real-time values
- Room status section: Grid of operational parameter displays
Structure
Configuration structure
Board charts are configured through/config/graphic/board with three data types:
1. Top charts
Each top chart (left/right) can be either:- LiquidFillPorcentaje: Animated liquid fill gauge
- CirclePorcentaje: Circular percentage gauge
topLeftChartType/topRightChartType: Component typetopLeftTitle/topRightTitle: Chart title- Chart data with InfluxDB variable binding
2. Pump monitoring data
Array of pump status cards, each with:id: Unique identifiername: Pump labelvarId: Linked InfluxDB variable IDvalue: Variable path (e.g., “topic.field”)unit: Display unit (optional)type: “pump”
3. Room status data
Array of operational parameters, each with:id: Unique identifiername: Parameter labelvarId: Linked InfluxDB variable IDvalue: Variable pathunit: Display unit (optional)type: “status”
Real-time data resolution
The component resolves values from multiple sources:Value formatting
Pump monitoring cards
Each pump card displays:- Name: Pump identifier
- Value: Formatted numeric value
- Unit: Measurement unit (if provided)
- Border: Light border with shadow
- Grid: 2-4 columns (responsive)
- Background: White with rounded corners
- Spacing: Gap-2 between cards
Room status display
Displays operational parameters in two layouts: Desktop (≥ lg):- Horizontal list with label-value pairs
- Separated by vertical dividers
- Vertical stacked rows
- Full width label-value pairs
Chart card wrapper
Top charts are wrapped inChartComponentDbWrapper which:
- Handles real-time data injection
- Manages component lifecycle
- Resolves InfluxDB values
- Passes formatted props to child components
Usage in dashboards
Board charts are configured and displayed through:-
Configuration page:
/config/graphic/board- Select chart types for top left/right
- Configure pump monitoring variables
- Set up room status parameters
-
Display pages:
/boards- Dedicated board view- Integrated into custom dashboards
Example configuration
Styling classes
Container:Data update frequency
Board charts update automatically when:- InfluxDB data refreshes (typically every 30 seconds)
- Parent component passes new
inflValuesprop - Configuration is saved/updated
Use cases
- Water treatment plant dashboards
- Pumping station monitoring
- System overview displays
- Multi-parameter tracking
- Operational control centers
Related components
- Liquid Fill - Used in top charts
- Circle Percentage - Alternative top chart
- Creating Dashboards - Configuration guide
Related pages
- Boards view - Board chart display page
- Board configuration - Setup instructions

