title: Uncaught TypeError: d3.schemeCategory20 is not a function
body: <p>I'm new in d3js and all the javascript-world too. In my html-file I simply import the script like that:</p>
  
  <pre><code>&lt;script src="https://d3js.org/d3.v4.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>By trying to use following:</p>
  
  <pre><code>var ordinalColorScale = d3.schemeCategory20();
  </code></pre>
  
  <p>I get the exception</p>
  
  <blockquote>
    <p>Uncaught TypeError: d3.schemeCategory20 is not a function at
    index.html:48</p>
  </blockquote>
  
  <p>Do I need any other d3js module, which has to be imported? Or what could have caused the problem?</p>