forked from p15670423/monkey
Moved tooltip right
This commit is contained in:
parent
b343ccf21e
commit
20976ddaaf
|
@ -35,8 +35,19 @@ class VennDiagram extends React.Component {
|
|||
People: {cx: -this.width2By7, cy: 0, r: this.sixthWidth, offset: {x: this.width1By11, y: 0}, popover: 'right'},
|
||||
Networks: {cx: this.width2By7, cy: 0, r: this.sixthWidth, offset: {x: -this.width1By11, y: 0}, popover: 'left'},
|
||||
Devices: {cx: 0, cy: this.width2By7, r: this.sixthWidth, offset: {x: 0, y: -this.width1By11}, popover: 'top'},
|
||||
Workloads: {cx: 0, cy: -this.width2By7, r: this.sixthWidth, offset: {x: 0, y: this.width1By11}, popover: 'bottom' },
|
||||
VisibilityAndAnalytics: {inner: this.thirdWidth - this.width1By28, outer: this.thirdWidth, icon: '\uf070', popover: 'left'},
|
||||
Workloads: {
|
||||
cx: 0,
|
||||
cy: -this.width2By7,
|
||||
r: this.sixthWidth,
|
||||
offset: {x: 0, y: this.width1By11},
|
||||
popover: 'bottom'
|
||||
},
|
||||
VisibilityAndAnalytics: {
|
||||
inner: this.thirdWidth - this.width1By28,
|
||||
outer: this.thirdWidth,
|
||||
icon: '\uf070',
|
||||
popover: 'right'
|
||||
},
|
||||
AutomationAndOrchestration: {
|
||||
inner: this.thirdWidth - this.width1By28 * 2 - this.arcNodesGap,
|
||||
outer: this.thirdWidth - this.width1By28 - this.arcNodesGap,
|
||||
|
@ -157,7 +168,9 @@ class VennDiagram extends React.Component {
|
|||
buildTooltipHtmlContent(object_) {
|
||||
|
||||
var out = [];
|
||||
Object.keys(object_).forEach(function(d_){ out.push([d_ + ': ' + object_[d_], <br />]); });
|
||||
Object.keys(object_).forEach(function (d_) {
|
||||
out.push([d_ + ': ' + object_[d_], <br/>]);
|
||||
});
|
||||
return out;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue