14

My question is about a specific Graphs and Charts Building Tool call AMCHARTS. I am using their live editor to build a Graph, and I need to remove the vertical lines (leave the horizontal lines only) from the chart grid.

Is it possible to do so?

thanks,

Perfect28
  • 11,089
  • 3
  • 25
  • 45
user3772369
  • 231
  • 1
  • 3
  • 10

7 Answers7

13

Just in case someone is still looking for the answer:

//disable horizontal lines    
valueAxis.renderer.grid.template.strokeWidth = 0;

//disable vertical lines
categoryAxis.renderer.grid.template.strokeWidth = 0;
SimonDau
  • 425
  • 4
  • 8
11

just change "categoryAxis"

"categoryAxis": {
     "gridThickness": 0
},

Thanks.

Sri
  • 496
  • 1
  • 5
  • 20
5

If you're looking for a solution on amCharts 4 use the following:

categoryAxis.renderer.grid.template.disabled = true;

See official docs for disabling certain elements

Alon Rosenfeld
  • 1,392
  • 13
  • 13
3

For removing the horizontal lines in the grid ...

   "valueAxes":{
                  "gridThickness":0
               },
user3384672
  • 73
  • 1
  • 3
  • 11
2

If you are looking for am5charts, then add

yAxis.get("renderer").grid.template.setAll({
      strokeWidth: 0,
      visible:false
    });


xAxis.get("renderer").grid.template.setAll({
      location: 0,
      strokeWidth: 0,
      visible:false
    });
Sajid ali
  • 101
  • 7
0

Just did some research, I'm posting the answer so that other can benefit. This option is in the "Category Axis -> Grid and Fills" Section.

user3772369
  • 231
  • 1
  • 3
  • 10
0

this is a good anseer by adding one more category or value axis to our charts:

https://github.com/amcharts/amcharts4/issues/2866

ProblemSolver
  • 636
  • 1
  • 8
  • 16