javascript - What does d3.scale.ordinal() mean -


Can anyone explain what this block of code does:

  colorScale = (Options.colors)? D3.scale.ordinal () Range (options.colors.map (function (d) {returns (is.Number (d))? ToHexColor (d): d;})): d3.scale.category20 ();  


Comments

Popular posts from this blog

mysql - How to enter php data into a html multiple select box -

java - Can't add JTree to JPanel of a JInternalFrame -

c++ - Cassandra datastax cpp driver - avoiding unnecessary copies -