Target line on chart

  • 1
  • Question
  • Updated 2 years ago
  • Answered
Has anyone ever put a target line on a chart?  So if we have "average time to close opportunities" graphed out by month, we'd like a target line on there - say 14 days.  I'd be willing to hardcode the target value, but I just want it to show up all the way across the chart range.
Photo of Chandra V

Chandra V, Champion

  • 6,966 Points 5k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Chandra,

You should be able to add lines to your chart with the 'before render snippet.'

You'll want to use yAxis.plotLines, like so: http://api.highcharts.com/highcharts#yAxis.plotLines

Also see: http://www.highcharts.com/stock/demo/yaxis-plotlines


There's plenty in the community on how this looks in a skuid snippet. Here's one sample: https://community.skuid.com/skuid/topics/modify-number-formats-on-charts