Week 5 Workshop

Files (Right-click and Save As)

Parallel Coordinates

Download (Right-click and Save As)

Exercise 1

Originally, the polylines in the PCP are in the gray colour. In this task, you will modify the "pcp.js" file to assign distinct colours to the polylines of different species.

Exercise 2

Alternatively, the polylines can be coloured by the numerical values of one selected dimension. In the second task, you will modify the code to colour the polylines by the values of "sepal length". Specifically, you will need to assign one colour to the minimum value and another colour to the maximum value, and the colours in between need to be interpolated based on the values of "sepal length".

Hint: Use a linear scale ranging from colour1 to colour2.