Skip to content

Commit 0d3b833

Browse files
Fixed labels on loops test
1 parent a4d5141 commit 0d3b833

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

samples/data/famdata.js

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -679,22 +679,18 @@ var famdataWorld = {
679679
var famdata2NodesLoopTest = {
680680
cursorItem: 2,
681681
annotations: [
682-
{ annotationType: primitives.AnnotationType.Label, fromItem: 2, toItems: [1, 101, 102, 103], title: "2->1" },
683-
{ annotationType: primitives.AnnotationType.Label, fromItem: 1, toItems: [2], title: "1->2" },
684-
new primitives.BackgroundAnnotationConfig({
685-
items: [1, 101, 102, 103],
686-
borderColor: "#f8e5f9",
687-
fillColor: "#e5f9f8",
688-
lineWidth: 2,
689-
selectItems: true,
690-
includeChildren: true,
691-
lineType: primitives.LineType.Dotted,
692-
offset: new primitives.Thickness(20, 20, 20, 20)
693-
})
682+
{ annotationType: primitives.AnnotationType.Label, fromItem: 1, toItems: [2], title: "12%" },
683+
{ annotationType: primitives.AnnotationType.Label, fromItem: 2, toItems: [3], title: "23%" },
684+
{ annotationType: primitives.AnnotationType.Label, fromItem: 3, toItems: [4], title: "34%" },
685+
{ annotationType: primitives.AnnotationType.Label, fromItem: 4, toItems: [5], title: "34%" },
686+
{ annotationType: primitives.AnnotationType.Label, fromItem: 1, toItems: [5], title: "15%" }
694687
],
695688
items: [
696-
{ id: 1, parents: [2], title: "1", label: "1", description: "1", image: "../images/photos/j.png", itemTitleColor: "#ff0000" },
697-
{ id: 2, parents: [1, 101, 102, 103], title: "2", label: "2", description: "2", image: "../images/photos/b.png", itemTitleColor: "#4b0082" },
689+
{ id: 1, parents: [5,2], title: "1", label: "1", description: "1", image: "../images/photos/a.png", itemTitleColor: "#ff0000" },
690+
{ id: 2, parents: [1,3], title: "2", label: "2", description: "2", image: "../images/photos/b.png", itemTitleColor: "#4b0082" },
691+
{ id: 3, parents: [2,4], title: "3", label: "3", description: "3", image: "../images/photos/c.png", itemTitleColor: "#4b0082" },
692+
{ id: 4, parents: [3,5], title: "4", label: "4", description: "4", image: "../images/photos/d.png", itemTitleColor: "#4b0082" },
693+
{ id: 5, parents: [4,1], title: "5", label: "5", description: "5", image: "../images/photos/e.png", itemTitleColor: "#4b0082" },
698694
]
699695
};
700696

0 commit comments

Comments
 (0)