Skip to content

Commit

Permalink
Merge pull request #254 from nzzdev/release-3.7.6
Browse files Browse the repository at this point in the history
Release 3.7.6
  • Loading branch information
dnlbln authored Mar 9, 2022
2 parents 66427c0 + 5efed72 commit b4652d3
Show file tree
Hide file tree
Showing 7 changed files with 191 additions and 5,436 deletions.
12 changes: 6 additions & 6 deletions chartTypes/arrow/mapping.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
const objectPath = require("object-path");
const array2d = require("array2d");
const clone = require("clone");
const Decimal = require("decimal.js");
const dataHelpers = require("../../helpers/data.js");
const d3config = require("../../config/d3.js");

const commonMappings = require("../commonMappings.js");

const getLongestDataLabel = require("../../helpers/data.js")
.getLongestDataLabel;
const textMetrics = require("vega").textMetrics;

const configuredDivergingColorSchemes = require("../../helpers/colorSchemes.js").getConfiguredDivergingColorSchemes();

module.exports = function getMapping() {
Expand Down Expand Up @@ -187,6 +181,12 @@ module.exports = function getMapping() {
}
},
},
{
path: "item.options.arrowOptions.invertColorScheme",
mapToSpec: function (invert, spec) {
objectPath.set(spec, "scales.2.reverse", invert);
},
},
{
path: "item.options.annotations.first",
mapToSpec: function (showFirstAnimation, spec) {
Expand Down
3 changes: 2 additions & 1 deletion chartTypes/arrow/vega-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
"scheme": "redblue",
"count": 3
},
"domain": [0, 1, 2]
"domain": [0, 1, 2],
"reverse": false
}
],
"marks": [
Expand Down
Loading

0 comments on commit b4652d3

Please sign in to comment.