Skip to main content

go-gocam-viewer-legend

Overview

The GO-CAM Viewer Legend component displays a legend for the relations used in the GO-CAM graph display. This can be used in advanced cases where the go-gocam-viewer component is used with the show-legend property set to false, and the legend needs to be displayed separately.

Usage

Basic Usage

<go-gocam-viewer-legend></go-gocam-viewer-legend>

Shadow Parts

PartDescription
"header"The header
"section"An individual legend entry
"sections"Group of legend entries

CSS Custom Properties

NameDescription
--border-colorBorder color of the legend
--border-widthBorder width of the legend
--header-backgroundBackground of the header
--header-border-colorBorder color of the header
--header-border-widthBorder width of the header
--header-colorText color of the header
--header-font-weightText font weight of the header
--header-paddingPadding of the header
--paddingPadding of the legend