Draw lines between points in Chart series?

  • 1
  • Question
  • Updated 4 years ago
I must be missing something in Highcharts...

I have the following before render:

var chartObj = arguments[0],	$ = skuid.$,
Appts = chartObj.series[0].data,
    Comp = chartObj.series[1].data,
    Shows = []; 
for (var i = 0; i < Appts.length; i++){
    Shows.push(Comp[i] / Appts[i]);
}
var newSeries = {
    name: 'Show Rate',
    data: Shows,
    type: 'line',
    yAxis: 'rateaxis',
    lineWidth: 2,
    dashStyle: 'solid',
    connectNulls: true
};
chartObj.series[2] = newSeries;

I end up with this:


I shouldn't need to set lineWidth and dashStyle, because those are defaults. Either way, I'm not getting a line.

What am I missing? Thanks!
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

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