Klar

Charts / React science and statistics charts / Relationship

Parallel coordinates

One axis per variable and one line per sample, with drag-to-brush filters on any axis, for finding the profile that separates groups.

React component ParallelCoordinates, data through props. How variables move together: correlation, density and many dimensions at once. Tags: parallel-coordinates, multivariate, brush, filter, dimensions, profile.

Install

npm i klar-charts

import 'klar-charts/styles.css'
import { ThemeScope, ParallelCoordinates } from 'klar-charts'

# or copy the source:
npx shadcn@latest add https://klar.run/r/sci-parallel-coordinates.json

Usage

<ParallelCoordinates
  rows={alloyRows}
  height={430}
  classKey="cls"
  classes={alloyClasses}
  colorBy={by === 'pren' ? 'pren' : undefined}
  labelKey="heat"
  initialBrushes={{ pren: [25, 42] }}
  axes={alloyAxes}
/>

Related parallel coordinates charts