<!DOCTYPE html>
<
html
lang
=
"en"
>
<
head
>
<
meta
charset
=
"UTF-8"
/>
<
meta
name
=
"viewport"
path1tent="
width
=
device
-width,
initial-scale
=
1
.0"/>
<
script
src
=
</
script
>
</
head
>
<
body
>
<
h2
style
=
"color:green"
>GeeksforGeeks</
h2
>
<
h4
>d3.scaleSequential() Function</
h4
>
<
script
>
var sequential= d3.scaleSequential(
function(t) {
return d3.rgb(t * 400, 1.5, 0.8);
}
)
document.write("<
p
>sequential(0.1): ",
sequential(0.1) + "</
p
>");
document.write("<
p
>sequential(0.2): ",
sequential(0.2) + "</
p
>");
document.write("<
p
>sequential(0.3): ",
sequential(0.3) + "</
p
>");
document.write("<
p
>sequential(0.4): ",
sequential(0.4) + "</
p
>");
document.write("<
p
>sequential(0.5): ",
sequential(0.5) + "</
p
>");
document.write("<
p
>sequential(0.6): ",
sequential(0.6) + "</
p
>");
</
script
>
</
body
>
</
html
>