# Fonts and colors

const config = {
  type: 'bar',
  data,
  options: {
    scales: {
      y: {
        beginAtZero: true,
        max: 130,
        min: 0,
        grid: {
          color: (ctx)=> ctx.tick.value <= 100 ?
            ctx.chart.scales.x.options.grid.color :
            undefined
        },
        ticks: {
          callback: (value) => value > 100 ? '' : value
        }
      }
    },
    plugins: {
      annotation: {
        annotations: {
          annotation1,
          annotation2,
          annotation3
        }
      }
    }
  }
};
Last Updated: 5/15/2023, 12:03:46 PM