New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@datawheel/canon-vizbuilder

Package Overview
Dependencies
Maintainers
2
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datawheel/canon-vizbuilder - npm Package Compare versions

Comparing version 0.2.18 to 0.2.19

2

package.json
{
"name": "@datawheel/canon-vizbuilder",
"description": "Visualization explorer for data retrieved from mondrian-rest.",
"version": "0.2.18",
"version": "0.2.19",
"main": "index.js",

@@ -6,0 +6,0 @@ "types": "index.d.ts",

@@ -41,3 +41,3 @@ import {assign} from "d3plus-common";

const charts = datagroup.charts.reduce((sum, chartType) => {
const setups = calcChartSetups(chartType, datagroup.query).map(setup => ({
const setups = calcChartSetups(datagroup, chartType).map(setup => ({
...datagroup,

@@ -98,7 +98,9 @@ baseConfig,

export function calcChartSetups(type, query) {
export function calcChartSetups(datagroup, type) {
const levels = datagroup.query.levels;
switch (type) {
case "treemap": {
const groupings = query.groups;
const permutations = getPermutations(query.levels);
const members = datagroup.members;
const permutations = getPermutations(levels);

@@ -113,4 +115,3 @@ /**

const level = setup[0];
const grouping = groupings.find(grp => grp.level === level);
return grouping.members.length !== 1;
return members[level.name].length !== 1;
});

@@ -120,3 +121,3 @@ }

default: {
return [query.levels];
return [levels];
}

@@ -123,0 +124,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc