Logos and positioning.

Shared logo display, placement, and Pro customization for every chart.

Pro customization

#

Use the Pro chart.branding entitlement to add your own logo, or use brand-logo="none" to remove it. Community retains the default Syidax logo.

<sy-line-chart brand-position="top-left"></sy-line-chart>

<!-- Pro: requires a valid chart.branding entitlement -->
<sy-line-chart brand-position="bottom-right" brand-logo="none"></sy-line-chart>

<script type="module">
  // Convert a local file to a data URL, then assign it.
  function setLogo(chart, file) {
    if (!["image/png", "image/jpeg", "image/webp"].includes(file.type) || file.size > 100 * 1024) {
      throw new Error("Choose a PNG, JPEG, or WebP file up to 100 KB.");
    }
    const reader = new FileReader();
    reader.addEventListener("load", () => { chart.brandLogo = reader.result; });
    reader.readAsDataURL(file);
  }
</script>

Image logos use PNG, JPEG, or WebP data URLs up to 100 KB. SVG and external image URLs are unsupported. Uploaded images are used only in this browser's preview and source code.