Add extra calrification for html legend (#11614)

This commit is contained in:
Jacco van den Berg 2023-12-14 22:11:26 +01:00 committed by GitHub
parent ac53fd282e
commit 84e7238a64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
# HTML Legend
This example shows how to create a custom HTML legend using a plugin and connect it to the chart in lieu of the default on-canvas legend.
This example shows how to create a custom HTML legend using a plugin and connect it to the chart in lieu of the default on-canvas legend.
For an html legend to work you need to place an empty div at your web page with the ID you provide in the options to bind to like so: `<div id="legend-container"></div>`.
<div id="legend-container"></div>