React-vis: Is it possible to make the labels on Sankey plot either angled or vertical?

Created on 16 Aug 2018  路  11Comments  路  Source: uber/react-vis

I am trying to make a Sankey plot, representing taxonomic tree but the labels in my data tend to be longer than usual and therefore they overlap one another, below are two snapshots explaining the behaviour. I was wondering if there was a possibility for the labels to be angled or vertical, or even alerting y axis so that it is easier to see using this library?

Thanks,
Tayab Soomro.

EDIT

My apologies for I forgot to attach the snapshots earlier, here they are:

screen shot 2018-08-15 at 6 17 26 pm

Below is the one with less data:

screen shot 2018-08-15 at 6 17 54 pm

Most helpful comment

@tayabsoomro bumped to 1.10.5

All 11 comments

Missing snap shots?

I forgot to add them earlier, apologies. I've updated my comment above.

Addressed in above PR

Could you please also update the npm library? It doesn't seem to download the latest code.

@benshope @jckr etc will somebody do a patch?

@mcnuttandrew yep!

@tayabsoomro bumped to 1.10.5

I un-installed and re-installed the library by typing:

$ npm uninstall react-vis
$ npm install react-vis

and the version does get updated to 1.10.5, but the rotation still does not work. I went inside node_modules/react-vis/src/sankey/index.js and the code doesn't seem to be updated.

Any help, please?

the NPM package still doesn't seem to have been updated: https://github.com/uber/react-vis/issues/900#issuecomment-414852444

1.10.7 appears to have recent changes in it no?

Oh wait.. my bad. I was still at 1.10.5. It's all good to go!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cang-afero picture cang-afero  路  4Comments

martoncsikos picture martoncsikos  路  4Comments

wroughtec picture wroughtec  路  4Comments

Falieson picture Falieson  路  3Comments

zavrick picture zavrick  路  4Comments