@m6d/cortex-angular 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1326,6 +1326,7 @@ var EXPANDING_TRANSFORMS = new Set([
|
|
|
1326
1326
|
"quantile",
|
|
1327
1327
|
"sample"
|
|
1328
1328
|
]);
|
|
1329
|
+
var CHART_SPEC_GUIDE = `Use Vega-Lite JSON with inline \`data.values\` only, at most ${MAX_CHART_ROWS} rows, and no \`url\` anywhere. Compute folds, trend lines and densities yourself. For several series, write one row per series and x value, or keep one row per x value and draw a layer per series (color by \`datum\`) when that would exceed the row limit. These keys are refused anywhere in the spec: ${[...EXPANDING_TRANSFORMS, "params", "selection"].join(", ")}. Expressions in \`calculate\`, \`filter\` and \`labelExpr\` may use only datum fields, literals, operators and simple math or date-part functions (no format or timeFormat), so put formatted values in the rows or use an axis \`format\`.`;
|
|
1329
1330
|
function chartNodeViolation(key, value) {
|
|
1330
1331
|
if (key === "url")
|
|
1331
1332
|
return "Charts may only use inline data and no URLs.";
|