I have very long labels on my morris donut graphs. Because of their long it's very hard to read.
I would like to have some kind of popup with label when I hover on that text. But there are no css classes to bind a handler.
js code:
Morris.Donut({
element: 'donut-example',
data: [
{label: "Download SalesD DDDDDDDDDDDDDDDDD", value: 12},
{label: "In-Store Sales AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", value: 30},
{label: "Mail-Order Sales VVVVVVVVVVVVVVV", value: 20}
]
});
I've tried formatter, but it is not a solution.
Please give me some help.
After a long time without any answer I decide to post my own solution. I doesn't do exactly what I've asked for, but supply readable solution.
It was done with label below the donut, instead of inside donut circle.
Here is working solution on JS Bin
Below You can see a screenshot of working in app:
Here is the code:
JS:
HTML head:
HTML body:
I hope this will help someone.