Nivo: Hiding or removing non-tick axis lines

Created on 2 Jul 2020  路  2Comments  路  Source: plouc/nivo

Hi,

Thank you all for the work you're doing on Nivo. It really is a great library to use.

I'm wondering if there's a way to hide/remove "non-tick" axis lines for the ResponsiveBar component. Currently, I'm implementing a horizontal bar chart, and I'm attempting to display tick values (w/ axis lines) along the x-axis for the chart. At the moment, the chart is also rendering additional vertical lines between the axisBottom's tickValues I've specified to be displayed.

Is there a way to remove the additional vertical axis lines drawn between the tick axis lines?

Here is a codesandbox of the chart I'm working on: link

bar question

Most helpful comment

I love a simple solution. Thank you so much!

All 2 comments

You can use gridXValues={[0, 50, 100]} that will match your tickValues on the x-axis.

I love a simple solution. Thank you so much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PattieC4ke picture PattieC4ke  路  3Comments

barnapisti1994 picture barnapisti1994  路  3Comments

cedmax picture cedmax  路  4Comments

knackjax picture knackjax  路  3Comments

danpettay picture danpettay  路  3Comments