Add comparator of characters

The user can now compare the stats of multiple characters with two
graph (column graph and polar spider).

Small refactor of the displayPolarSpider function to work in all pages.
This commit is contained in:
dario-cfpt
2020-01-28 08:33:46 +01:00
parent 824e7eb784
commit 2baa70c2c2
8 changed files with 205 additions and 29 deletions

View File

@ -39,7 +39,21 @@ routes = [
},
{
path: '/comparator/',
templateUrl: './pages/comparator.html'
templateUrl: './pages/comparator.html',
on: {
pageInit: (e, page) => {
$$("#btn-graph-column-chart").on("click", (event) => {
switchGraph(event);
});
$$("#btn-graph-spider-web").on("click", (event) => {
switchGraph(event);
});
},
// We must use the pageAfterIn event in order to open the smartselect directly
pageAfterIn: (e, page) => {
configureSmartSelectOfCharacters();
}
}
},
{
path: '/about/',