We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caa8aee commit 159f61dCopy full SHA for 159f61d
docling_core/types/doc/labels.py
@@ -45,6 +45,7 @@ def get_color(label: "DocItemLabel") -> Tuple[int, int, int]:
45
DocItemLabel.PAGE_FOOTER: (204, 255, 204),
46
DocItemLabel.PAGE_HEADER: (204, 255, 204),
47
DocItemLabel.PICTURE: (255, 204, 164),
48
+ DocItemLabel.CHART: (255, 204, 164),
49
DocItemLabel.SECTION_HEADER: (255, 153, 153),
50
DocItemLabel.TABLE: (255, 204, 204),
51
DocItemLabel.TEXT: (255, 255, 153),
@@ -58,7 +59,7 @@ def get_color(label: "DocItemLabel") -> Tuple[int, int, int]:
58
59
DocItemLabel.PARAGRAPH: (255, 255, 153),
60
DocItemLabel.REFERENCE: (176, 224, 230),
61
}
- return color_map[label]
62
+ return color_map.get(label, (0, 0, 0))
63
64
65
class GroupLabel(str, Enum):
0 commit comments