@@ -498,7 +498,7 @@ const createDiagram = () => {
498
498
' post' : { x: width * 0.8 , y: 150 },
499
499
500
500
// Second row - better distributed
501
- ' accessToken' : { x: width * 0.2 , y: 450 },
501
+ ' accessToken' : { x: width * 0.2 , y: 500 }, // Moved down to avoid overlapping
502
502
' subscriber' : { x: width * 0.8 , y: 450 },
503
503
504
504
// Third row - more evenly spaced
@@ -708,9 +708,9 @@ const createDiagram = () => {
708
708
.attr (' stroke-width' , 1 )
709
709
.attr (' stroke-opacity' , 0.3 )
710
710
711
- // Relationships container
711
+ // Relationships container - added margin above relationships section
712
712
const relationshipsGroup = g .append (' g' )
713
- .attr (' transform' , ` translate(0, ${relationshipsY }) ` )
713
+ .attr (' transform' , ` translate(0, ${relationshipsY + 10 }) ` ) // Added 10px margin
714
714
715
715
// Add each relationship on its own row
716
716
d .relationships .forEach ((rel , i ) => {
@@ -805,7 +805,7 @@ const createDiagram = () => {
805
805
806
806
// Add a legend for relationship types with improved visibility
807
807
const legend = svg .append (' g' )
808
- .attr (' transform' , ` translate(${width - 220 }, 20 ) ` )
808
+ .attr (' transform' , ` translate(${width - 220 }, 40 ) ` ) // Moved down to center vertically
809
809
.attr (' class' , ' legend' )
810
810
811
811
// Add legend background for better visibility
0 commit comments