Custom Fonts

chart.fontFamily and label font size / weight.

Chart type
Sankey sankey
Tier
Premium
Collection
Sankey
Render
Live, site theme
View .md Agent setup
LIVE/sankey/custom-fonts20 of 23 in Sankey

Configuration

Raw Standalone
const options = {
  chart: {
    height: 360,
    toolbar: {
      show: false
    },
    type: "sankey",
    fontFamily: "Georgia, \"Times New Roman\", serif"
  },
  series: [
    {
      data: [
        ["Authors", "Drafts", 40],
        ["Drafts", "Edited", 30],
        ["Drafts", "Shelved", 10],
        ["Edited", "Published", 26],
        ["Edited", "Rejected", 4]
      ]
    }
  ],
  plotOptions: {
    sankey: {
      labels: {
        fontSize: 15,
        fontWeight: 400
      }
    }
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()

This example uses Premium modules. Compare licences · Embedding in a distributed product?