Skip to content

Commit

Permalink
ajout des donnée statistiques sur les participants
Browse files Browse the repository at this point in the history
  • Loading branch information
sushigurrl committed Jun 22, 2018
1 parent 9388c5b commit 55bd670
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 17 deletions.
14 changes: 0 additions & 14 deletions data participants/data-pays.js

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var dataAges = [
[ '20 à 29', 19 ],
[ '30 à 39', 31 ],
[ '40 à 49', 23 ],
[ '50 à 59', 1 ],
[ '50 à 59', 1 ],
[ '60 et plus', 1 ],
];

Expand Down
42 changes: 42 additions & 0 deletions participants/data-participants.js
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
4 changes: 2 additions & 2 deletions data participants/pays.html → participants/pays.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="stylesheet" href="../libs/chartist/chartist.min.css">
<script src="../libs/chartist/chartist.min.js"></script>
<script src="../js/fonctions.js"></script>
<script src="data-pays.js"></script>
<script src="data-participants.js"></script>
<style>

body {
Expand All @@ -18,7 +18,7 @@
}

</style>
</head>s
</head>
<body>
<div class="ct-chart ct-square"></div>

Expand Down

0 comments on commit 55bd670

Please sign in to comment.