Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Mar 12, 2021
1 parent afac319 commit 9727cf4
Show file tree
Hide file tree
Showing 5 changed files with 371 additions and 22 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
},
"devDependencies": {
"clean-css": "^5.1.1",
"canvas": "^2.6.1",
"eslint": "^7.12.1",
"esm": "^3.2.25",
"js-beautify": "^1.13.0",
Expand Down
10 changes: 0 additions & 10 deletions src/legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ export class ColorLegend {
tickValues
} = {}
} = {} } = this;
console.warn({
title,
tickSize,
width,
height,
top,
bottom,
left,
right
});
const tx = left !== undefined ? left : canvasWidth - width + right;
const ty = bottom !== undefined ? canvasHeight - bottom - height : top;
return create("svg:g")
Expand Down
17 changes: 17 additions & 0 deletions test/output/gistempAnomaly.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion test/plots/gistemp-anomaly.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default async function() {
grid: true
},
color: {
type: "diverging"
type: "diverging",
legend: true
},
marks: [
Plot.ruleY([0]),
Expand Down
Loading

0 comments on commit 9727cf4

Please sign in to comment.