Jonathan Tuzman
Jonathan Tuzman

Reputation: 13278

jqchart: Show line without dots/points?

In jqchart, how can I hide the dots in a line graph? I only want to display the line, not the dots for each point. Thanks! I can't seem to find it in the docs.

My current axes are set up with these defaults:

  axisDefaults: JqChart.Axis = {
    zoomEnabled: true,
    reversed: false,
    type: JqChart.AxisTypes.linear,
    visible: true,
    labels: { visible: true },
    majorGridLines: { strokeStyle: 'silver' },
    // minorGridLines: { strokeStyle: 'silver' } // set or uncomment for gridlines between ticks
  };

Upvotes: 0

Views: 27

Answers (1)

Jonathan Tuzman
Jonathan Tuzman

Reputation: 13278

Found it, it's a property of the series called markers.

config.series = [{
      type: 'line',
      markers: { size: 0 }
    }];
$(this.chartWrapper.nativeElement).jqChart(config);

Upvotes: 0

Related Questions