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 -

python - Calculate STD manually using Groupby Pandas DataFrame -

java - @PluginTarget(Node.class) not registering as neo4j plugin -