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.
MultipleBooleanChart component displays multiple boolean status indicators (LEDs) in a responsive grid layout. Each LED shows an on/off state with customizable labels and colors.
Component location
Source:/src/modules/Charts/components/MultipleBooleanChart.jsx:1
Props
Title displayed above the LED grid
Number of columns in the grid layout
Array of LED configuration objects. Each item must have:
key: Unique identifiertitle: LED label textvalue: Boolean or “Sin datos”textOn: Text when active (default: “Encendido”)textOff: Text when inactive (default: “Apagado”)colorOn: Color when active (default: “#00ff00”)colorOff: Color when inactive (default: “#444444”)
LED indicator structure
Each LED indicator consists of:- Label: Item title displayed above the LED
- LED circle: 20px circular indicator with border
- Status text: Shows textOn/textOff/Sin datos
- Active (ON):
colorOnfill + matching border +textOntext - Inactive (OFF):
colorOfffill + gray border +textOfftext - No data: Gray fill + gray border + “Sin datos” text
Usage
Grid layout
The component uses a responsive grid:- Columns adapt to container width
- Maintains consistent spacing with
gap-2 - Each LED takes equal width (
minmax(0, 1fr))
Integration with real-time data
When used in dashboards (e.g., Home view), LEDs receive real-time values from InfluxDB:Styling
Each LED card has:- White background with rounded corners
- Border:
border-slate-200 - Shadow:
shadow-sm - Padding:
px-2 py-2
Configuration in charts
Multiple Boolean Charts are configured via/config/graphic/multipleBoolean:
- Set chart title
- Define number of columns
- For each LED:
- Enter label text
- Select InfluxDB variable
- Set ON/OFF text labels
- Choose ON/OFF colors
led1.titleled1.textOnled1.colorOn- etc.
Use cases
- Equipment status monitoring (multiple pumps, valves, motors)
- Alarm panel displays
- System health dashboards
- Process status indicators
- Multi-zone monitoring
Comparison with BooleanChart
| Feature | BooleanChart | MultipleBooleanChart |
|---|---|---|
| Display | Single large LED | Grid of compact LEDs |
| Size | ~200px circle | 20px circles |
| Layout | Standalone | Grid with N columns |
| Glow effect | Yes | No |
| Text position | Below LED | Right of LED |
Related components
- Boolean Chart - Single large LED indicator
- Board Chart - Dashboard with multiple chart types

