Skip to content

Commit

Permalink
Merge pull request #8 from wavemaker/d3LibUpgrade
Browse files Browse the repository at this point in the history
WMS-25006: Nvd3 library fixes on pie labels
  • Loading branch information
bhargavigundaa authored Jan 19, 2024
2 parents a4ba710 + daf3cfa commit 78ac596
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/nv.d3.js
Original file line number Diff line number Diff line change
Expand Up @@ -15136,7 +15136,7 @@ Options for chart:
label = getX(d.data).replace(/\.0+$/, '');
break;
case 'value':
label = valueFormat(getY(d.data)).replace(/\.0+$/, '');
label = parseFloat(valueFormat(getY(d.data)).replace(/\.0+$/, ''));
break;
case 'percent':
label = d3.format('.0%')(percent).replace(/\.0+$/, '');
Expand Down
2 changes: 1 addition & 1 deletion build/nv.d3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wavemaker/nvd3",
"version": "1.8.6",
"version": "1.8.8",
"description": "A reusable charting library written in d3.js",
"url": "https://github.com/wavemaker/nvd3",
"main": "build/nv.d3.min.js",
Expand Down
2 changes: 1 addition & 1 deletion src/nv.d3.js
Original file line number Diff line number Diff line change
Expand Up @@ -15136,7 +15136,7 @@ Options for chart:
label = getX(d.data).replace(/\.0+$/, '');
break;
case 'value':
label = valueFormat(getY(d.data)).replace(/\.0+$/, '');
label = parseFloat(valueFormat(getY(d.data)).replace(/\.0+$/, ''));
break;
case 'percent':
label = d3.format('.0%')(percent).replace(/\.0+$/, '');
Expand Down

0 comments on commit 78ac596

Please sign in to comment.