I am having an issue with my dojo chart whereas I cannot get the chart label to be truncated when there is overflow and the chart title is too long. I just want to be able to truncate the title with an ellipsis if it is going to overflow outside the chart boundaries.
I have tried the basics like trying to add a class to it that includes:
.title {
text-overflow: ellipsis;
white-space: no-wrap;
overflow: hidden;
}
But it only results in the whole title being hidden. If I remove the overflow: hidden part, then the title shows, but it still overflows outside the chart area.
I've got a sample on JSFiddle that shows the problem.
Any ideas on how to accomplish this? Any help is greatly appreciated!