@evergis/charts 3.1.12 → 3.1.13
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/charts.esm.js +5 -5
- package/dist/index.js +5 -5
- package/package.json +2 -2
package/dist/charts.esm.js
CHANGED
|
@@ -2718,10 +2718,10 @@ const MIN_BAR_HEIGHT = 2;
|
|
|
2718
2718
|
const draw$1 = (node, props) => {
|
|
2719
2719
|
const { data, lineData = [], markers = [], barWidth: barWidthProp, barPadding, colors, margin, xAxisPadding, yAxisPadding, drawGridY, drawGridX, customYScale, customXScale, customYAxisLeft, customXAxisBottom, customYAxis, customXAxis, customBars, customize, dynamicTooltipEnable, hideTooltipGroupName, renderTooltip, labelPosition, renderLabel, tooltipY, tooltipBind, stackedLine, curve, formatTooltipValue, formatTooltipName, sectionPadding, minValuesLine, tooltipYDomain, marshalledMap, minValue, maxValue, minDomainValue, maxDomainValue, drawBars, setTooltipPosition, onLabelItem, isBarTooltip, xScaleItemWidth, tooltipRoot, tooltipClassName, onBarClick, onBarHover, } = props;
|
|
2720
2720
|
if (node !== null && data.length) {
|
|
2721
|
-
const marginTop = margin
|
|
2722
|
-
const marginRight = margin
|
|
2723
|
-
const marginBottom = margin
|
|
2724
|
-
const marginLeft = margin
|
|
2721
|
+
const marginTop = margin?.top ?? 0;
|
|
2722
|
+
const marginRight = margin?.right ?? 0;
|
|
2723
|
+
const marginBottom = margin?.bottom ?? 0;
|
|
2724
|
+
const marginLeft = margin?.left ?? 0;
|
|
2725
2725
|
const defaultBarWidth = 12;
|
|
2726
2726
|
const { width: nodeWidth } = node.getBoundingClientRect();
|
|
2727
2727
|
const width = props.width || nodeWidth;
|
|
@@ -2830,7 +2830,7 @@ const draw$1 = (node, props) => {
|
|
|
2830
2830
|
.attr('id', maskId)
|
|
2831
2831
|
.append('rect')
|
|
2832
2832
|
.attr('width', '100%')
|
|
2833
|
-
.attr('height', height - marginBottom + MIN_BAR_HEIGHT)
|
|
2833
|
+
.attr('height', height - marginTop - marginBottom + MIN_BAR_HEIGHT)
|
|
2834
2834
|
.attr('fill', 'white');
|
|
2835
2835
|
const gSvg = svg.append('g')
|
|
2836
2836
|
.attr('class', barChartClassNames.barChartBarGlobal)
|
package/dist/index.js
CHANGED
|
@@ -2739,10 +2739,10 @@ const MIN_BAR_HEIGHT = 2;
|
|
|
2739
2739
|
const draw$1 = (node, props) => {
|
|
2740
2740
|
const { data, lineData = [], markers = [], barWidth: barWidthProp, barPadding, colors, margin, xAxisPadding, yAxisPadding, drawGridY, drawGridX, customYScale, customXScale, customYAxisLeft, customXAxisBottom, customYAxis, customXAxis, customBars, customize, dynamicTooltipEnable, hideTooltipGroupName, renderTooltip, labelPosition, renderLabel, tooltipY, tooltipBind, stackedLine, curve, formatTooltipValue, formatTooltipName, sectionPadding, minValuesLine, tooltipYDomain, marshalledMap, minValue, maxValue, minDomainValue, maxDomainValue, drawBars, setTooltipPosition, onLabelItem, isBarTooltip, xScaleItemWidth, tooltipRoot, tooltipClassName, onBarClick, onBarHover, } = props;
|
|
2741
2741
|
if (node !== null && data.length) {
|
|
2742
|
-
const marginTop = margin
|
|
2743
|
-
const marginRight = margin
|
|
2744
|
-
const marginBottom = margin
|
|
2745
|
-
const marginLeft = margin
|
|
2742
|
+
const marginTop = margin?.top ?? 0;
|
|
2743
|
+
const marginRight = margin?.right ?? 0;
|
|
2744
|
+
const marginBottom = margin?.bottom ?? 0;
|
|
2745
|
+
const marginLeft = margin?.left ?? 0;
|
|
2746
2746
|
const defaultBarWidth = 12;
|
|
2747
2747
|
const { width: nodeWidth } = node.getBoundingClientRect();
|
|
2748
2748
|
const width = props.width || nodeWidth;
|
|
@@ -2851,7 +2851,7 @@ const draw$1 = (node, props) => {
|
|
|
2851
2851
|
.attr('id', maskId)
|
|
2852
2852
|
.append('rect')
|
|
2853
2853
|
.attr('width', '100%')
|
|
2854
|
-
.attr('height', height - marginBottom + MIN_BAR_HEIGHT)
|
|
2854
|
+
.attr('height', height - marginTop - marginBottom + MIN_BAR_HEIGHT)
|
|
2855
2855
|
.attr('fill', 'white');
|
|
2856
2856
|
const gSvg = svg.append('g')
|
|
2857
2857
|
.attr('class', barChartClassNames.barChartBarGlobal)
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.1.
|
|
2
|
+
"version": "3.1.13",
|
|
3
3
|
"name": "@evergis/charts",
|
|
4
4
|
"author": "Everpoint",
|
|
5
5
|
"license": "MIT",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"react-is": "^19.1.1",
|
|
53
53
|
"styled-components": "5.3.5"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "cfe4ec7488b916cf35607401065e9577f9e3106c"
|
|
56
56
|
}
|