Reputation: 193
Ref this screenshot of Gantt Chart in Slate, when the bar is small the label 1 is not visible,
How to make the label small dynamically so that it fits within the bar area instead of becoming blank value.
css code or html code to make the label 1 appear in the available space
Upvotes: 0
Views: 269
Reputation: 639
You're correct in highlighting that the whole label element is removed from the dom when the chart is too small. This is due to how the underlying plotting library, Plottable.js, currently works + how it's used to implement the gantt chart in Slate (if interested, see this file for a decent entry point into the code). I don't see any way of solving the issue with the native Slate gantt chart apart from making it wider.
Here are some alternatives and workarounds:
Upvotes: 1