Tuesday, 19 October 2021

Using chart.js version 3, How do create Custom Labels with Links?

I'm using Charts JS and I'd like to create some custom Labels on a Stacked Bar Chart. I'm trying to recreate this following chart: enter image description here

How do I create custom labels as circled in Red above? I'd like to link to other pages with these labels. Actually the bolded text would link to one page and the normal text would link to another page.

Also How would you label each bar in a way that the values drop down off the bar when their is not enough room to display it on the bar? See the "4%" or "6%" on the right side of the graph.

I'm also wanting to know how to put a margin spacing between each stacked bar. See the vertical white space between each bar on the image above.

Any help with the issues above would be greatly appreciated. Thanks.



from Using chart.js version 3, How do create Custom Labels with Links?

No comments:

Post a Comment