Parallel coordinates (1)

Parallel coordinate plot for the classic Iris flower dataset, scaled to the standard deviation of each variable. Inspired by the ggparcoord example in R.

<Plot
    grid
    height={450}
    inset={10}
    y={{ label: 'Standard deviation' }}
    color={{ legend: true }}>
    <Line
        {...normalizeParallelY(
            {
                data: iris,
                x: 'Measurement',
                y: 'Value',
                z: 'Id'
            },
            'deviation'
        )}
        strokeOpacity={0.5}
        stroke="Species"
        marker="dot" />
</Plot>

Open in Svelte playground

Improve this page
Last update at: 2025/11/24