@ansible/ansible-ui-framework 0.0.457 → 0.0.459
Sign up to get free protection for your applications and to get access to all the features.
@@ -46,6 +46,6 @@ function PageDashboardChart(props) {
|
|
46
46
|
}
|
47
47
|
return false;
|
48
48
|
});
|
49
|
-
return ((0, jsx_runtime_1.jsx)(PageChartContainer_1.PageChartContainer, { children: function (size) { return ((0, jsx_runtime_1.jsxs)(react_charts_1.Chart, __assign({ padding: { bottom: 27, left: 40, right: 0, top:
|
49
|
+
return ((0, jsx_runtime_1.jsx)(PageChartContainer_1.PageChartContainer, { children: function (size) { return ((0, jsx_runtime_1.jsxs)(react_charts_1.Chart, __assign({ padding: { bottom: 27, left: 40, right: 0, top: 10 }, colorScale: groups.map(function (group) { return group.color; }), width: size.width, height: size.height, animate: true }, { children: [(0, jsx_runtime_1.jsx)(react_charts_1.ChartAxis, { fixLabelOverlap: true, tickFormat: function (date) { return "".concat(new Date(date).toLocaleDateString()); } }), (0, jsx_runtime_1.jsx)(react_charts_1.ChartAxis, { dependentAxis: true, showGrid: true }), (0, jsx_runtime_1.jsx)(react_charts_1.ChartStack, { children: groups.map(function (group, index) { return ((0, jsx_runtime_1.jsx)(react_charts_1.ChartArea, { data: group.values.map(function (value) { return ({ x: value.label, y: value.value }); }), interpolation: "monotoneX" }, index)); }) })] }))); } }));
|
50
50
|
}
|
51
51
|
exports.PageDashboardChart = PageDashboardChart;
|