File tree Expand file tree Collapse file tree 5 files changed +358
-19
lines changed Expand file tree Collapse file tree 5 files changed +358
-19
lines changed Original file line number Diff line number Diff line change 2929 "@observablehq/plot" : " ./src/index.js"
3030 },
3131 "devDependencies" : {
32+ "canvas" : " ^2.6.1" ,
3233 "d3" : " ^6.3.1" ,
3334 "eslint" : " ^7.12.1" ,
3435 "esm" : " ^3.2.25" ,
Original file line number Diff line number Diff line change @@ -39,16 +39,6 @@ export class ColorLegend {
3939 tickValues
4040 } = { }
4141 } = { } } = this ;
42- console . warn ( {
43- title,
44- tickSize,
45- width,
46- height,
47- top,
48- bottom,
49- left,
50- right
51- } ) ;
5242 const tx = left !== undefined ? left : canvasWidth - width + right ;
5343 const ty = bottom !== undefined ? canvasHeight - bottom - height : top ;
5444 return create ( "svg:g" )
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ export default async function() {
1313 grid : true
1414 } ,
1515 color : {
16- type : "diverging"
16+ type : "diverging" ,
17+ legend : true
1718 } ,
1819 marks : [
1920 Plot . ruleY ( [ 0 ] ) ,
You can’t perform that action at this time.
0 commit comments