Commit a6feb8ff authored by guglielmo's avatar guglielmo

copyright and license notice added; indicatorMultiplier parameter added

parent e8f994d2
This diff is collapsed.
......@@ -63,14 +63,17 @@
// Title, description, source
var dataTitle = "Asili nido 2014";
var dataDescription = "Posti nido disponibili per ogni 100 abitanti nella " +
"fascia di età fino a 3 anni";
var dataDescription = "Descrizione del dato";
var dataSource = "ISTAT";
var legendText = "posti per 100 ab. fino ai 3 anni";
var legendText = "% utenti su posti";
// indicator Multiplier, can take values of 1 or 100
// to handle different percentage types
var indicatorMultiplier = 100.;
// dataset name
// the {dataset}.csv file must live in the data directory
var dataset = "primainf_p_posti_2014";
var dataset = "nido_perc_utenti_su_posti_2014";
<script src="js/d3-locations-dashboard.js"></script>
Author Guglielmo Celata <>
Copyright 2018 Fondazione Openpolis ETS
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <>.
.defer(d3.json, "data/comuni.topo.json")
.defer(d3.csv, "data/" + dataset + ".csv")
......@@ -21,7 +40,7 @@ function ready(error, it, indicator) {
var indicatorById = {}; // Create empty object for holding dataset
indicator.forEach(function (d) {
// Create property for each ID, give it value from indicatore
indicatorById[+d.id_territorio] = +d.indicatore;
indicatorById[+d.id_territorio] = +d.indicatore * indicatorMultiplier;
// create dict with province names
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment