vega-lite
Advanced tools
Comparing version 0.7.10 to 0.7.11
{ | ||
"name": "vega-lite", | ||
"main": "vega-lite.js", | ||
"version": "0.7.10", | ||
"version": "0.7.11", | ||
"homepage": "https://github.com/uwdata/vega-lite", | ||
@@ -6,0 +6,0 @@ "authors": [ |
{ | ||
"name": "vega-lite", | ||
"author": "Jeffrey Heer, Dominik Moritz, Kanit \"Ham\" Wongsuphasawat", | ||
"version": "0.7.10", | ||
"version": "0.7.11", | ||
"collaborators": [ | ||
@@ -6,0 +6,0 @@ "Kanit Wongsuphasawat <kanitw@gmail.com> (http://kanitw.yellowpigz.com)", |
@@ -41,3 +41,2 @@ 'use strict'; | ||
prop: bar_props, | ||
requiredEncoding: ['x', 'y'], | ||
supportedEncoding: {row: 1, col: 1, x: 1, y: 1, size: 1, color: 1} | ||
@@ -44,0 +43,0 @@ }; |
@@ -39,4 +39,9 @@ 'use strict'; | ||
} else { // raw plot | ||
numPoints = stats.count; | ||
// TODO: error handling | ||
if (!stats['*']) | ||
return 1; | ||
numPoints = stats['*'].max; // count | ||
// small multiples divide number of points | ||
@@ -54,8 +59,8 @@ var numMultiples = 1; | ||
var opacity = 0; | ||
if (numPoints < 20) { | ||
if (numPoints <= 25) { | ||
opacity = 1; | ||
} else if (numPoints < 200) { | ||
opacity = 0.8; | ||
} else if (numPoints < 1000 || encoding.is('tick')) { | ||
opacity = 0.7; | ||
} else if (numPoints < 1000 || encoding.is('tick')) { | ||
opacity = 0.6; | ||
} else { | ||
@@ -62,0 +67,0 @@ opacity = 0.3; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119958
7514709
94