Creating a radar chart
Now, let's make the final CT.
In the same way as the pie chart, change the JavaScript file to be read and create the radar chart HTML (source file: 17_making_a_radar_chart/ct/dashboard/radar_app.html
).
Again, everything is the same as the pie chart in this JavaScript file apart from the create class name: MyApp.view.dashboard.Radar
(source file: 17_making_a_radar_chart/ct/dashboard/radar_app.js
).
Implementing the Direct function
As the title says, let's implement the Direct
function. As before, we'll implement the Direct
method (getRadarData
) to acquire the data for the radar chart. Please refer to the following source file for details (source file: 18_implement_direct_function/php/classes/ MyAppDashBoard.php
).
You've guessed it, the process is exactly the same as the getLineData
. So, there's no need to implement it unnecessarily, but if you want to display different data on the radar chart, please amend this method.
Preparing the store for the chart
Let's prepare the store...