“You can have data without information, but you cannot have information without data” so when you have data then you might want to represent it by so many popular way. Someone prefer Table to represent data, someone use most creative way to represent data using Chart that is visually appealing.
Today you going to learn how to create simple yet flexible chart in Joomla using light weight chart library ChartJs.
For the demo purpose i have created one Joomla component named chartjs located in ROOT/components/com_chartjs.
First thing come first so at first add jQuery and chart.js in joomla view, If you want to these js is common in all view then it is better to add it inside chartjs.php located in ROOT/components/com_chartjs/chartjs.php