@mwater/visualization 5.4.0 → 5.4.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.
|
@@ -557,7 +557,7 @@ class LayeredChartCompiler {
|
|
|
557
557
|
if (layer.trendline === "linear") {
|
|
558
558
|
const trendlineSeries = seriesY + ":trendline";
|
|
559
559
|
columns.push([trendlineSeries].concat(calculateLinearRegression(yValues, xValues)));
|
|
560
|
-
types[trendlineSeries] = (0, billboard_js_1.line)();
|
|
560
|
+
types[trendlineSeries] = billboard_js_1.line ? (0, billboard_js_1.line)() : "line";
|
|
561
561
|
names[trendlineSeries] = names[seriesY] + T ` Trendline`;
|
|
562
562
|
xs[trendlineSeries] = seriesX;
|
|
563
563
|
colors[trendlineSeries] = layer.color || defaultColors[layerIndex];
|
|
@@ -803,7 +803,7 @@ class LayeredChartCompiler {
|
|
|
803
803
|
trendYs = lodash_1.default.initial(trendYs);
|
|
804
804
|
}
|
|
805
805
|
columns.push([trendlineSeries].concat(calculateLinearRegression(trendYs, trendXs)));
|
|
806
|
-
types[trendlineSeries] = (0, billboard_js_1.line)();
|
|
806
|
+
types[trendlineSeries] = billboard_js_1.line ? (0, billboard_js_1.line)() : "line";
|
|
807
807
|
names[trendlineSeries] = names[series] + " Trendline";
|
|
808
808
|
xs[trendlineSeries] = "x";
|
|
809
809
|
colors[trendlineSeries] = layer.color || defaultColors[layerIndex];
|
|
@@ -34,6 +34,7 @@ export default class PivotChartDesignerComponent extends React.Component<PivotCh
|
|
|
34
34
|
hasSuccess?: boolean;
|
|
35
35
|
hasWarnings?: boolean;
|
|
36
36
|
hasErrors?: boolean;
|
|
37
|
+
horizontal?: boolean;
|
|
37
38
|
}, ui.FormGroup> | null;
|
|
38
39
|
renderSetup(): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
39
40
|
render(): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
@@ -36,6 +36,7 @@ export default class SegmentDesignerComponent extends React.Component<SegmentDes
|
|
|
36
36
|
hasSuccess?: boolean;
|
|
37
37
|
hasWarnings?: boolean;
|
|
38
38
|
hasErrors?: boolean;
|
|
39
|
+
horizontal?: boolean;
|
|
39
40
|
}, ui.FormGroup>;
|
|
40
41
|
renderLabel(): React.CElement<{
|
|
41
42
|
label: React.ReactNode;
|
|
@@ -46,6 +47,7 @@ export default class SegmentDesignerComponent extends React.Component<SegmentDes
|
|
|
46
47
|
hasSuccess?: boolean;
|
|
47
48
|
hasWarnings?: boolean;
|
|
48
49
|
hasErrors?: boolean;
|
|
50
|
+
horizontal?: boolean;
|
|
49
51
|
}, ui.FormGroup>;
|
|
50
52
|
renderValueAxis(): React.JSX.Element;
|
|
51
53
|
renderFilter(): React.CElement<{
|
|
@@ -57,6 +59,7 @@ export default class SegmentDesignerComponent extends React.Component<SegmentDes
|
|
|
57
59
|
hasSuccess?: boolean;
|
|
58
60
|
hasWarnings?: boolean;
|
|
59
61
|
hasErrors?: boolean;
|
|
62
|
+
horizontal?: boolean;
|
|
60
63
|
}, ui.FormGroup>;
|
|
61
64
|
renderStyling(): React.CElement<{
|
|
62
65
|
label: React.ReactNode;
|
|
@@ -67,6 +70,7 @@ export default class SegmentDesignerComponent extends React.Component<SegmentDes
|
|
|
67
70
|
hasSuccess?: boolean;
|
|
68
71
|
hasWarnings?: boolean;
|
|
69
72
|
hasErrors?: boolean;
|
|
73
|
+
horizontal?: boolean;
|
|
70
74
|
}, ui.FormGroup>;
|
|
71
75
|
renderBorders(): React.CElement<{
|
|
72
76
|
label: React.ReactNode;
|
|
@@ -77,6 +81,7 @@ export default class SegmentDesignerComponent extends React.Component<SegmentDes
|
|
|
77
81
|
hasSuccess?: boolean;
|
|
78
82
|
hasWarnings?: boolean;
|
|
79
83
|
hasErrors?: boolean;
|
|
84
|
+
horizontal?: boolean;
|
|
80
85
|
}, ui.FormGroup>;
|
|
81
86
|
renderOrderExpr(): React.CElement<{
|
|
82
87
|
label: React.ReactNode;
|
|
@@ -87,6 +92,7 @@ export default class SegmentDesignerComponent extends React.Component<SegmentDes
|
|
|
87
92
|
hasSuccess?: boolean;
|
|
88
93
|
hasWarnings?: boolean;
|
|
89
94
|
hasErrors?: boolean;
|
|
95
|
+
horizontal?: boolean;
|
|
90
96
|
}, ui.FormGroup>;
|
|
91
97
|
render(): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
92
98
|
}
|
package/package.json
CHANGED
|
@@ -669,7 +669,7 @@ export default class LayeredChartCompiler {
|
|
|
669
669
|
if (layer.trendline === "linear") {
|
|
670
670
|
const trendlineSeries = seriesY + ":trendline"
|
|
671
671
|
columns.push([trendlineSeries].concat(calculateLinearRegression(yValues, xValues)))
|
|
672
|
-
types[trendlineSeries] = line()
|
|
672
|
+
types[trendlineSeries] = line ? line() : "line"
|
|
673
673
|
names[trendlineSeries] = names[seriesY] + T` Trendline`
|
|
674
674
|
xs[trendlineSeries] = seriesX
|
|
675
675
|
colors[trendlineSeries] = layer.color || defaultColors[layerIndex]
|
|
@@ -958,7 +958,7 @@ export default class LayeredChartCompiler {
|
|
|
958
958
|
trendYs = _.initial(trendYs)
|
|
959
959
|
}
|
|
960
960
|
columns.push([trendlineSeries].concat(calculateLinearRegression(trendYs, trendXs)))
|
|
961
|
-
types[trendlineSeries] = line()
|
|
961
|
+
types[trendlineSeries] = line ? line() : "line"
|
|
962
962
|
names[trendlineSeries] = names[series] + " Trendline"
|
|
963
963
|
xs[trendlineSeries] = "x"
|
|
964
964
|
colors[trendlineSeries] = layer.color || defaultColors[layerIndex]
|