PMSI-AlignAlytics / dimple

An object-oriented API for business analytics
Other
2.73k stars 556 forks source link

Best strategy for showing very long legends? #289

Open NicolasPerl opened 6 years ago

NicolasPerl commented 6 years ago

When my data set gets too large for the container the legend simply stops. Is there a way to have the legend scrollable? Or perhaps another strategy to include the full legend in the specified container? The objective is to be able to visualize all categories in the legend.

andrewxu10 commented 6 years ago

did you ever figure this out? My legend is getting cut off despite setting larger and larger dimensions for the legend

Rolok commented 6 years ago

I've done a fair bit of searching. I don't know how to go about it with dimple. However, take a look at these two links. I think you should be able to leverage the jsfiddle code to get what you want. http://jsfiddle.net/ramseyfeng/80afu8kc/

This has equivalent functionality, but it is using dc.js Check out the examples page for some cool things. http://dc-js.github.io/dc.js/examples/html-legend.html

At one point, I had a chart that was displaying hundreds of lines. It just wasn't practical. I changed it to just show the items above a certain threshold. The rest were really noise anyway.