chore: Fix cSpell in pieRenderer
This commit is contained in:
parent
22993e8b6c
commit
31380368e1
|
@ -161,9 +161,9 @@ let conf = configApi.getConfig();
|
|||
// .attr('transform', function (d, i) {
|
||||
// var height = legendRectSize + legendSpacing;
|
||||
// var offset = (height * color.domain().length) / 2;
|
||||
// var horz = 12 * legendRectSize;
|
||||
// var vert = i * height - offset;
|
||||
// return 'translate(' + horz + ',' + vert + ')';
|
||||
// var horizontal = 12 * legendRectSize;
|
||||
// var vertical = i * height - offset;
|
||||
// return 'translate(' + horizontal + ',' + vertical + ')';
|
||||
// });
|
||||
|
||||
// legend
|
||||
|
@ -337,11 +337,11 @@ export const draw = (txt, id, _version, diagObj) => {
|
|||
.append('g')
|
||||
.attr('class', 'legend')
|
||||
.attr('transform', function (d, i) {
|
||||
var height = legendRectSize + legendSpacing;
|
||||
var offset = (height * color.domain().length) / 2;
|
||||
var horz = 12 * legendRectSize;
|
||||
var vert = i * height - offset;
|
||||
return 'translate(' + horz + ',' + vert + ')';
|
||||
const height = legendRectSize + legendSpacing;
|
||||
const offset = (height * color.domain().length) / 2;
|
||||
const horizontal = 12 * legendRectSize;
|
||||
const vertical = i * height - offset;
|
||||
return 'translate(' + horizontal + ',' + vertical + ')';
|
||||
});
|
||||
|
||||
legend
|
||||
|
|
Loading…
Reference in New Issue