When we're creating a chart using the Chart.js framework, we're going to need a canvas element. The Chart JS library relies on canvas elements. So create a canvas element in the HTML section, give it an ID of line-chart, and then close off that canvas element.
You cannot just pass the result array to data , as it isn't in correct format. data property expects an array of numbers. So, you need to parse the
The Chart is a widget that visualizes data from a local or remote storage using a great variety of series types along with different interactive elements, such as tooltips, crosshair pointer, legend, etc. Included in: dx.viz.js, dx.viz-web.js, dx.all.js.