November 2019
Beginner
804 pages
20h 1m
English
Finally, let's now implement the most important piece of our puzzle, the renderChart method. We will code it together piece by piece as follows:
console.log("Rendering the chart");
const chartFormDetails = this._view.getChartFormDetails();
Of course, we need to make sure that there are no errors:
if (chartFormDetails.error) {
console.error("Failed to retrieve the chart details", chartFormDetails.error);
return;
}
if (!chartFormDetails.countryId || !chartFormDetails.indicator ...
Read now
Unlock full access