How to remove lines on the bar chart

225 Views Asked by At

How to remove lines on the bar chart. (These are appearing when add js for the line chart in jqPlot) .Not Grid lines in the chart. lines on bars.

enter image description here

1

There are 1 best solutions below

5
On

See this:

series: {
    0: {
        targetAxisIndex: 0
    },
    1: {
        targetAxisIndex: 0
    },
    2: {
        targetAxisIndex: 1,
        type: "line"
    },
    3: {
         targetAxisIndex: 1,
         lineWidth: 0,
         pointSize: 3,
         type: "line"
    },
}

You can put lineWidth = 0 if you want to show points, and not line.

Edit: Sorry, that was for google chart. For jqPlot use this:

seriesDefaults: {    
    showLine:false
}

Hope it helps.