Nivo: Documentation for <ResponsiveNetwork/> on the site is inaccurate.

Created on 29 Jul 2019  路  6Comments  路  Source: plouc/nivo

On the site it says that the component needs a data prop in the form of:

{
"nodes" : [{}],
"links": [{}]
}

But is expecting separate nodes and links props.

stale

Most helpful comment

Thanks @xanderjakeq xanderjakeq
Yes, there is an inconsistency between the documentation and the code.
This is what the code states

image

All 6 comments

I can fix that right now

@xanderjakeq can you explain with more details how the data should be shown, please ?

This is the example given.
image

It shows that the ResponsiveNetwork component accepts a data prop.

However, the source code for the Network component doesn't and expects a separate nodes and links props on lines 25 and 26.

Would suggest changing the example maybe? @Larissagilliane

Thanks @xanderjakeq xanderjakeq
Yes, there is an inconsistency between the documentation and the code.
This is what the code states

image

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luisrudge picture luisrudge  路  3Comments

cedmax picture cedmax  路  4Comments

serendipity1004 picture serendipity1004  路  3Comments

Buvaneshkumar7 picture Buvaneshkumar7  路  3Comments

KENNYSOFT picture KENNYSOFT  路  3Comments