@@ -296,6 +296,7 @@ it("plot(…).scale('color') can return a linear scale", () => {
296
296
assert . deepStrictEqual ( plot . scale ( "color" ) , {
297
297
type : "linear" ,
298
298
domain : [ 1 , 5 ] ,
299
+ range : [ 0 , 1 ] ,
299
300
interpolate : d3 . interpolateTurbo ,
300
301
clamp : false
301
302
} ) ;
@@ -318,6 +319,7 @@ it("plot(…).scale('color') can return a utc scale", async () => {
318
319
assert . deepStrictEqual ( plot . scale ( "color" ) , {
319
320
type : "utc" ,
320
321
domain : [ new Date ( "2013-05-13" ) , new Date ( "2018-05-11" ) ] ,
322
+ range : [ 0 , 1 ] ,
321
323
interpolate : d3 . interpolateTurbo ,
322
324
clamp : false
323
325
} ) ;
@@ -696,6 +698,7 @@ it("plot(…).scale('color') promotes a cyclical scale to a linear scale", () =>
696
698
assert . deepStrictEqual ( plot . scale ( "color" ) , {
697
699
type : "linear" ,
698
700
domain : [ 1 , 5 ] ,
701
+ range : [ 0 , 1 ] ,
699
702
interpolate : d3 . interpolateRainbow ,
700
703
clamp : false
701
704
} ) ;
@@ -706,6 +709,7 @@ it("plot(…).scale('color') ignores nonsensical options for cyclical scale", ()
706
709
assert . deepStrictEqual ( plot . scale ( "color" ) , {
707
710
type : "linear" ,
708
711
domain : [ 1 , 5 ] ,
712
+ range : [ 0 , 1 ] ,
709
713
interpolate : d3 . interpolateRainbow ,
710
714
clamp : false
711
715
} ) ;
@@ -716,6 +720,7 @@ it("plot(…).scale('color') promotes a cyclical scale to a linear scale, even w
716
720
assert . deepStrictEqual ( plot . scale ( "color" ) , {
717
721
type : "linear" ,
718
722
domain : [ 1 , 5 ] ,
723
+ range : [ 0 , 1 ] ,
719
724
interpolate : d3 . interpolateBlues ,
720
725
clamp : false
721
726
} ) ;
@@ -726,6 +731,7 @@ it("plot(…).scale('color') promotes a cyclical scale to a linear scale and ign
726
731
assert . deepStrictEqual ( plot . scale ( "color" ) , {
727
732
type : "linear" ,
728
733
domain : [ 1 , 5 ] ,
734
+ range : [ 0 , 1 ] ,
729
735
interpolate : d3 . interpolateWarm ,
730
736
clamp : false
731
737
} ) ;
@@ -736,6 +742,7 @@ it("plot(…).scale('color') promotes a sequential scale to a linear scale, even
736
742
assert . deepStrictEqual ( plot . scale ( "color" ) , {
737
743
type : "linear" ,
738
744
domain : [ 1 , 5 ] ,
745
+ range : [ 0 , 1 ] ,
739
746
interpolate : d3 . interpolateBlues ,
740
747
clamp : false
741
748
} ) ;
@@ -746,6 +753,7 @@ it("plot(…).scale('color') promotes a sequential scale to a linear scale and i
746
753
assert . deepStrictEqual ( plot . scale ( "color" ) , {
747
754
type : "linear" ,
748
755
domain : [ 1 , 5 ] ,
756
+ range : [ 0 , 1 ] ,
749
757
interpolate : d3 . interpolateWarm ,
750
758
clamp : false
751
759
} ) ;
@@ -756,6 +764,7 @@ it("plot(…).scale('color') promotes a sequential scale to a linear scale", ()
756
764
assert . deepStrictEqual ( plot . scale ( "color" ) , {
757
765
type : "linear" ,
758
766
domain : [ 1 , 5 ] ,
767
+ range : [ 0 , 1 ] ,
759
768
interpolate : d3 . interpolateTurbo ,
760
769
clamp : false
761
770
} ) ;
@@ -767,6 +776,7 @@ it("plot(…).scale('color') promotes a reversed sequential scale to a linear sc
767
776
assert . deepStrictEqual ( color , {
768
777
type : "linear" ,
769
778
domain : [ 1 , 5 ] ,
779
+ range : [ 0 , 1 ] ,
770
780
clamp : false
771
781
} ) ;
772
782
for ( const t of d3 . ticks ( 1 , 5 , 100 ) ) {
0 commit comments