Stepline

Price tiers that change in steps.

Chart type
Line line
Tier
Free Core
Collection
Line
Render
Live, site theme
View .md Agent setup
LIVE/line/stepline7 of 14 in Line

Configuration

Raw Standalone
const options = {
  chart: {
    height: 380,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "line",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Plan price €",
      data: [9, 9, 12, 12, 12, 15, 15, 14, 14, 18, 18, 18]
    }
  ],
  stroke: {
    curve: "stepline",
    width: 2.5
  },
  xaxis: {
    categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
  },
  markers: {
    size: 3
  },
  title: {
    text: "Plan price over the year"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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