All examples By author By category About

jamesleesaunders

D3 : Random Colours Using rgb() - Column Chart

Ramdom Colours Using rgb() - Column Chart

In this example we generate another data array of random numbers. Then we generate a basic DIV based column chart using the random number to dictate the column height and colour (note the correct English spelling for colour.. not color!).

Colours can be references in a few different ways: