chore: Fix cSpell in pieRenderer

This commit is contained in:
Sidharth Vinod 2022-11-22 10:49:45 +05:30
parent 22993e8b6c
commit 31380368e1
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 8 additions and 8 deletions

View File

@ -161,9 +161,9 @@ let conf = configApi.getConfig();
// .attr('transform', function (d, i) { // .attr('transform', function (d, i) {
// var height = legendRectSize + legendSpacing; // var height = legendRectSize + legendSpacing;
// var offset = (height * color.domain().length) / 2; // var offset = (height * color.domain().length) / 2;
// var horz = 12 * legendRectSize; // var horizontal = 12 * legendRectSize;
// var vert = i * height - offset; // var vertical = i * height - offset;
// return 'translate(' + horz + ',' + vert + ')'; // return 'translate(' + horizontal + ',' + vertical + ')';
// }); // });
// legend // legend
@ -337,11 +337,11 @@ export const draw = (txt, id, _version, diagObj) => {
.append('g') .append('g')
.attr('class', 'legend') .attr('class', 'legend')
.attr('transform', function (d, i) { .attr('transform', function (d, i) {
var height = legendRectSize + legendSpacing; const height = legendRectSize + legendSpacing;
var offset = (height * color.domain().length) / 2; const offset = (height * color.domain().length) / 2;
var horz = 12 * legendRectSize; const horizontal = 12 * legendRectSize;
var vert = i * height - offset; const vertical = i * height - offset;
return 'translate(' + horz + ',' + vert + ')'; return 'translate(' + horizontal + ',' + vertical + ')';
}); });
legend legend