Bullet

Actual bars against target ticks and qualitative ranges.

Chart type
Bar bar
Tier
Free Core
Collection
Custom series
Render
Live, site theme
View .md Agent setup
LIVE/custom-series/bullet1 of 3 in Custom series

Configuration

Raw Standalone
const options = {
  chart: {
    height: 360,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "bar",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Actual",
      data: [
        {
          x: "Revenue",
          y: 91,
          goals: [
            {
              name: "Target",
              value: 74,
              strokeWidth: 3,
              strokeHeight: 16,
              strokeColor: "#0f172a"
            }
          ]
        },
        {
          x: "Profit",
          y: 72,
          goals: [
            {
              name: "Target",
              value: 80,
              strokeWidth: 3,
              strokeHeight: 16,
              strokeColor: "#0f172a"
            }
          ]
        },
        {
          x: "Avg. order",
          y: 73,
          goals: [
            {
              name: "Target",
              value: 83,
              strokeWidth: 3,
              strokeHeight: 16,
              strokeColor: "#0f172a"
            }
          ]
        },
        {
          x: "New customers",
          y: 88,
          goals: [
            {
              name: "Target",
              value: 70,
              strokeWidth: 3,
              strokeHeight: 16,
              strokeColor: "#0f172a"
            }
          ]
        },
        {
          x: "Satisfaction",
          y: 87,
          goals: [
            {
              name: "Target",
              value: 89,
              strokeWidth: 3,
              strokeHeight: 16,
              strokeColor: "#0f172a"
            }
          ]
        }
      ]
    }
  ],
  plotOptions: {
    bar: {
      horizontal: true,
      barHeight: "36%",
      borderRadius: 2
    }
  },
  annotations: {
    xaxis: [
      {
        x: 0,
        x2: 50,
        fillColor: "#94a3b8",
        opacity: 0.18
      },
      {
        x: 50,
        x2: 75,
        fillColor: "#94a3b8",
        opacity: 0.1
      }
    ]
  },
  xaxis: {
    max: 100,
    labels: {
      formatter: (v) => v + '%'
    }
  },
  legend: {
    show: true,
    customLegendItems: ["Actual", "Target"]
  },
  title: {
    text: "KPI attainment vs target"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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