by
29 3
0
1
51
0
Specified
This snippet is Public
No tags for this snippet yet.
Languagecsharp
Languagejs
LicenseMIT_X11

scale

Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/4596141/scale?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
// создаем шкалу: функцию scale(x). // ['a', 'b', 'c', 'd'] - domain - входной диапазон // ['red', 'blue', 'green', 'orange'] - range - выходной диапазон let scale = d3.scaleOrdinal(['red', 'blue', 'green', 'orange']).domain(['a', 'b', 'c', 'd']) scale('c') // 'green'
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus