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

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

asp.net mvc - How to attach sql database to a javascript graph -

c# - How to know the number of Threads created and limit the Tasks accordingly -