Skip to content

Commit

Permalink
[requested-change] Improve styling
Browse files Browse the repository at this point in the history
  • Loading branch information
totallynotvaishnav committed Jun 16, 2022
1 parent 9b24470 commit bfb8cd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/css/netjsongraph.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,7 @@ body {
font-weight: bold;
text-align: center;
}

.njg-tooltip {
background-color: #ccc !important;
}
2 changes: 2 additions & 0 deletions src/js/netjsongraph.render.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class NetJSONGraphRender {

tooltip: {
confine: true,
position: "right",
padding: [5, 16],
formatter: (params) => {
if (params.componentSubType === "graph") {
return params.dataType === "edge"
Expand Down

0 comments on commit bfb8cd1

Please sign in to comment.