0

I have created a Candlestick chart with nvd3 and I would like to hide the values displayed on the xAxis, but not the gridlines. With the use of .showXAxis(false), the xAxis is hidden alongside with the gridlines. Is there a way to hide only the values of the xAxis and show the grid? (wanted result is shown in picture below) enter image description here

T. ksaps
  • 77
  • 8
  • Possible duplicate of [nvd3 line chart, how to remove gridlines and yaxis](https://stackoverflow.com/questions/22055289/nvd3-line-chart-how-to-remove-gridlines-and-yaxis) – Martin Zeitler Sep 09 '18 at 08:04
  • ^ the title tells exactly the opposite, while it might answer your question. – Martin Zeitler Sep 09 '18 at 08:05
  • @MartinZeitler the question you mention hides the x-axis and gridlines. I have used this code, though when I hide the x-axis, the gridlines is hidden also. I want to hide only the x-axis but ddisplay the gridlines, this is my question – T. ksaps Sep 09 '18 at 18:37
  • guess you would have to set the grid-lines to `display: block` or even `display: block !important` to enforce it... CSS can also be applied with JS, eg. on whatever chart-event, which is being triggered. – Martin Zeitler Sep 10 '18 at 00:10

0 Answers0