React-diagrams: legend for diagram?

Created on 30 Jan 2018  路  3Comments  路  Source: projectstorm/react-diagrams

I dunno if it's too much to ask but is it possible to have a legend so we can describe our own Custom Links/Nodes/ Images etc?

Some higher level element which abstracts the legend maybe?

invalid

Most helpful comment

Yeah I thought that was what you meant, its a cool idea but I don't think the library should do this because its quite easy to implement yourself with an absolute positioned div.

All 3 comments

not entirely sure I understand what you mean. If you are referring to some sort of overlay then it would be best to implement it yourself as an absolute panel.

I meant something like this. Where the legend could be a component which could be used to explain the diagram colors. The legend could be a prop to the diagram itself.

Excuse my bad paint drawing.

example3

Yeah I thought that was what you meant, its a cool idea but I don't think the library should do this because its quite easy to implement yourself with an absolute positioned div.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

affanshahid picture affanshahid  路  3Comments

kmannislands picture kmannislands  路  3Comments

ganesh-sankey picture ganesh-sankey  路  4Comments

jardg picture jardg  路  3Comments

CarlousF picture CarlousF  路  3Comments