ciprianciurea / chartjs-plugin-doughnutlabel

Chart.js plugin for doughnut chart to display text in the center
https://ciprianciurea.github.io/chartjs-plugin-doughnutlabel/samples/index.html
MIT License
65 stars 24 forks source link

[Request] HTML Support in Label #8

Open BlackYuzia opened 5 years ago

BlackYuzia commented 5 years ago

Feature Proposal

Function for add html tags in to center text.

Feature Use Case

This can help add icons, (example: from font awesome) in middle Also, You can use tags like <strong>, <small> etc. For example: image

Possible Implementation

Example:

                plugins: {
                    doughnutlabel: {
                        labels: [
                            {
                                html-text: "<strong>" + Total + "</strong>" + " " + "<small>" + "%" + "</small>"
                            }
                        ]
                    }
                }