-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ajout des donnée statistiques sur les participants
- Loading branch information
1 parent
9388c5b
commit 55bd670
Showing
5 changed files
with
45 additions
and
17 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// On définit les choses: | ||
|
||
var dataPays = [ | ||
[ 'Belgique', 11 ], | ||
[ 'France', 38 ], | ||
[ 'Suisse', 29 ], | ||
[ 'New Zealand', 1 ], | ||
]; | ||
|
||
var labelsPays = arrayKeys(dataPays); | ||
var seriesPays = arrayValues(dataPays); | ||
|
||
var dataCompany = [ | ||
[ 'Agences de communication', 8 ], | ||
[ 'Agence de design', 1 ], | ||
[ 'Agences web', 10 ], | ||
[ 'Freelance', 31 ], | ||
[ 'Collectif', 1 ], | ||
[ 'Consulting Communication', 1 ], | ||
[ 'Ecoles', 5 ], | ||
[ 'Indépendant', 3 ], | ||
[ 'Start-up', 2 ], | ||
[ 'Studios', 2 ], | ||
]; | ||
|
||
var labelsCompany = arrayKeys(dataCompany); | ||
var seriesCompany = arrayValues(dataCompany); | ||
|
||
var dataAges = [ | ||
[ '19 ou moins', 4 ], | ||
[ '20 à 29', 19 ], | ||
[ '30 à 39', 31 ], | ||
[ '40 à 49', 23 ], | ||
[ '50 à 59', 1 ], | ||
[ '60 et plus', 1 ], | ||
]; | ||
|
||
var labelsAges = arrayKeys(dataAges); | ||
var seriesAges = arrayValues(dataAges); | ||
|
||
// avec arrayKeys() on obtient les labels | ||
// avec arrayValues() on obtient les chiffres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters