oolib 2.54.2 → 2.54.3

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.
@@ -55,7 +55,7 @@ var BarChart = function (props) {
55
55
  right: marginProp.right || config.margin.right,
56
56
  }
57
57
  : config.margin;
58
- var data = props.data, id = props.id, className = props.className, numValuePath = props.numValuePath, categoryValuePath = props.categoryValuePath, _a = props.categoryAxis, categoryAxis = _a === void 0 ? 'y' : _a, _b = props.barWidth, barWidth = _b === void 0 ? 20 : _b, numberAxisLabel = props.numberAxisLabel, _c = props.highlight
58
+ var data = props.data, id = props.id, className = props.className, numValuePath = props.numValuePath, numLabelPath = props.numLabelPath, categoryValuePath = props.categoryValuePath, _a = props.categoryAxis, categoryAxis = _a === void 0 ? 'y' : _a, _b = props.barWidth, barWidth = _b === void 0 ? 20 : _b, numberAxisLabel = props.numberAxisLabel, _c = props.highlight
59
59
  /**
60
60
  * can be 'max' or 'min' or undefined. if undefined,
61
61
  * all bars will be painted the same color. if defined,
@@ -171,7 +171,7 @@ var BarChart = function (props) {
171
171
  .data(data)
172
172
  .enter()
173
173
  .append("text")
174
- .text(function (d) { return (0, getVal_1.getVal)(d, numValuePath); })
174
+ .text(function (d) { return (0, getVal_1.getVal)(d, numLabelPath || numValuePath); })
175
175
  .attr("y", function (d) {
176
176
  return categoryAxisGenerator((0, getVal_1.getVal)(d, categoryValuePath)) + (categoryAxisGenerator.bandwidth() / 2) + 4;
177
177
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.54.2",
3
+ "version": "2.54.3",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",