← All use cases

IoT Monitoring Charts

Monitor IoT devices and sensor networks with real-time chart components. Line charts for time series, gauges for thresholds, heatmaps for device grids, and sparklines for at-a-glance status.

Example Implementation

dashboard.tsx
import { LineChart, GaugeChart } from "@chartts/react"

export function SensorDashboard({ sensors }) {
  return (
    <div className="grid grid-cols-4 gap-4">
      {sensors.map(sensor => (
        <div key={sensor.id} className="rounded-xl card p-4">
          <p className="text-sm muted-text">{sensor.name}</p>
          <p className="text-2xl font-bold heading">{sensor.current}{sensor.unit}</p>
          <GaugeChart
            value={sensor.current}
            min={sensor.min}
            max={sensor.max}
            zones={sensor.zones}
            className="h-24 mt-2"
          />
        </div>
      ))}
      <div className="col-span-4 rounded-xl card p-6">
        <LineChart
          data={sensors[0].history}
          x="timestamp"
          y="value"
          className="h-64"
          animate
        />
      </div>
    </div>
  )
}

Why Chart.ts for IoT Monitoring

Real-time data streaming with smooth transitions
Gauge charts with configurable threshold zones
Heatmap grids for device network visualization
60fps animation for live sensor data
Lightweight enough for embedded dashboards
Works with WebSocket and MQTT bridges
Under 15kb total footprint

Start building your iot monitoring

Install Chart.ts and have your first chart rendering in 2 minutes.

$npm install @chartts/react