@malloydata/render 0.0.405 → 0.0.406
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.
- package/dist/module/component/vega/measure-series-label-scale.d.ts +12 -0
- package/dist/module/index.mjs +23736 -23744
- package/dist/module/index.umd.js +392 -392
- package/dist/module/plugins/bar-chart/bar-chart-plugin.d.ts +3 -2
- package/dist/module/plugins/bar-chart/generate-bar_chart-vega-spec.d.ts +6 -1
- package/dist/module/plugins/line-chart/generate-line_chart-vega-spec.d.ts +6 -1
- package/dist/module/plugins/line-chart/line-chart-plugin.d.ts +3 -2
- package/dist/module/plugins/scatter-chart/generate-scatter_chart-spec.d.ts +3 -0
- package/dist/module/plugins/synthetic-series-field.d.ts +11 -0
- package/package.json +5 -5
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Scale } from 'vega';
|
|
2
|
+
import { NestField } from '../../data_tree';
|
|
3
|
+
export declare const MEASURE_SERIES_LABEL_SCALE = "measureSeriesLabel";
|
|
4
|
+
/**
|
|
5
|
+
* Maps the measure-series legend's domain (raw measure field names) to each
|
|
6
|
+
* field's `# label`. Labels live in scale data so they render verbatim: an
|
|
7
|
+
* explicit `# label=""` deliberately shows a blank legend entry, the same
|
|
8
|
+
* way it hides an axis title. Domain and range dedupe in lockstep because
|
|
9
|
+
* d3 dedupes an ordinal scale's domain but not its range; a repeated y
|
|
10
|
+
* measure would otherwise shift later labels onto the wrong measure.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getMeasureSeriesLabelScale(explore: NestField, yFieldPaths: string[]): Scale;
|