I am using flot to display bar charts. When I set the tickLength to 0, it hides the vertical and horizontal lines but it also hides the x-axis and y-axis lines. I need the x-axis and y-axis with out the vertical and horizontal grid lines. Is there a way to do this?
Please see the second chart in the image. That is what I want.
Mark answer works but it's a little too hardcoded for his data. This one is a little better:
Still if your chart starts at a value different than 0 you have to manually change the markings.
For the case of a (0,0) origin, you can fake the axes by just drawing bottom and left border lines:
This trickier than I thought it would be. The only thing I can come up with is to disable the border and axis lines, than add them back in manually:
Produces:
Setting
will also hide the grid lines.
Try to color the lines in white (or your bg-color)