Nivo: XScale time precision: week

Created on 19 Jul 2019  路  2Comments  路  Source: plouc/nivo

Hello,

First, thank you for your awesome work !

I'm working on a time scale line chart, I'd like to have a precision of week but this does not seem possible using precision: week in the xScale definition. Is there any alternative ?

Thanks !

Most helpful comment

precision defines the unit from which the date should be cut-off, so week isn't a valid unit, however if your goal is to have the x axis' ticks to show weekly intervals, you can use xScale={{ ..., tickValues: 'every week' }}.

All 2 comments

precision defines the unit from which the date should be cut-off, so week isn't a valid unit, however if your goal is to have the x axis' ticks to show weekly intervals, you can use xScale={{ ..., tickValues: 'every week' }}.

precision defines the unit from which the date should be cut-off, so week isn't a valid unit, however if your goal is to have the x axis' ticks to show weekly intervals, you can use xScale={{ ..., tickValues: 'every week' }}.

Thank for this, that solves my issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

knackjax picture knackjax  路  3Comments

p45mark picture p45mark  路  3Comments

Haaziq-Uvais picture Haaziq-Uvais  路  3Comments

danpettay picture danpettay  路  3Comments

gcloeval picture gcloeval  路  3Comments