Bar with goal markers

Horizontal bars with target ticks.

Chart type
Bar bar
Tier
Free Core
Collection
Bar
Render
Live, site theme
View .md Agent setup
LIVE/bar/bar-with-markers10 of 12 in Bar

Configuration

Raw Standalone
const options = {
  chart: {
    height: 380,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "bar",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Actual",
      data: [
        {
          x: "Platform",
          y: 76,
          goals: [
            {
              name: "Goal",
              value: 83,
              strokeWidth: 3,
              strokeHeight: 14,
              strokeColor: "#f59e0b",
              strokeLineCap: "round"
            }
          ]
        },
        {
          x: "Payments",
          y: 63,
          goals: [
            {
              name: "Goal",
              value: 71,
              strokeWidth: 3,
              strokeHeight: 14,
              strokeColor: "#f59e0b",
              strokeLineCap: "round"
            }
          ]
        },
        {
          x: "Search",
          y: 57,
          goals: [
            {
              name: "Goal",
              value: 87,
              strokeWidth: 3,
              strokeHeight: 14,
              strokeColor: "#f59e0b",
              strokeLineCap: "round"
            }
          ]
        },
        {
          x: "Mobile",
          y: 62,
          goals: [
            {
              name: "Goal",
              value: 83,
              strokeWidth: 3,
              strokeHeight: 14,
              strokeColor: "#f59e0b",
              strokeLineCap: "round"
            }
          ]
        },
        {
          x: "Data",
          y: 62,
          goals: [
            {
              name: "Goal",
              value: 83,
              strokeWidth: 3,
              strokeHeight: 14,
              strokeColor: "#f59e0b",
              strokeLineCap: "round"
            }
          ]
        },
        {
          x: "Growth",
          y: 65,
          goals: [
            {
              name: "Goal",
              value: 84,
              strokeWidth: 3,
              strokeHeight: 14,
              strokeColor: "#f59e0b",
              strokeLineCap: "round"
            }
          ]
        }
      ]
    }
  ],
  plotOptions: {
    bar: {
      horizontal: true,
      barHeight: "55%",
      borderRadius: 3
    }
  },
  legend: {
    show: true,
    showForSingleSeries: true,
    customLegendItems: ["Actual", "Goal"],
    markers: {
      fillColors: ["#2563eb", "#f59e0b"]
    }
  },
  dataLabels: {
    enabled: false
  },
  title: {
    text: "OKR progress by team (%)"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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