Adding text elements and labels

You can always add captions and titles outside your chart, using plain HTML or JavaScript. However, Chart.js also includes properties that draw and configure text elements inside the canvas as part of the chart. If the properties don't give you enough flexibility, you can use callbacks to filter or generate labels. If tooltips, titles, and legends aren't enough, you can also use plugins to add labels to bars, slices, and lines. You can even draw over the chart using plain HTML Canvas. This section will explore some of these techniques.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset