Add graphs for the growth rates of a character
The visual of the graphs remains to be improved according to the size of the screen.
This commit is contained in:
@ -21,7 +21,18 @@ routes = [
|
||||
const charId = page.route.params.charId;
|
||||
if (charId != null) {
|
||||
const char = feData.characters.find(x => x.id == charId);
|
||||
console.log(char);
|
||||
let charFullName = (char.lastName) ? char.firstName + " " + char.lastName
|
||||
: char.firstName;
|
||||
|
||||
$$("#title-char").text(charFullName);
|
||||
$$("#picture-char").attr("src", "/img/characters/" + char.firstName + ".png");
|
||||
actualCharId = charId;
|
||||
createTableOfStats();
|
||||
displayTableOfGrowthRates();
|
||||
|
||||
$$("#select-graph").on("change", () => {
|
||||
displayGraphOfGrowthRates();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user