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
function charts(data_id) { | |
var campo = data_id; | |
var url ="http://{username}.cartodb.com/api/v1/sql?q=SELECT nbarri,rfd_2008,rfd_2009,rfd_2010, rfd_2011 FROM {tablename} WHERE cartodb_id="+campo+"" | |
console.log(url); | |
var cartoItems = []; | |
$.getJSON(url, function(data) { | |
$.each(data.rows, function(key, val) { | |
cartoItems.push(val.rfd_2008); | |
cartoItems.push(val.rfd_2009); | |
cartoItems.push(val.rfd_2010); |
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
__author__ = 'avbcmati' | |
# -*- coding: utf-8 -*- | |
import csv | |
#creo un fichero con los datos | |
datos = [ | |
['Teclado', 10, 56.5], | |
['Torre', 9, 99.5], | |
['Pantalla', 100, 56.5] |
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
<html> | |
<head> | |
<title>Duero</title> | |
<script src="http://openlayers.org/api/OpenLayers.js"></script> | |
<link rel="stylesheet" href="openlayers/theme/default/style.css" type="text/css"> | |
<style> | |
#map-id { | |
width: 1024px; | |
height: 512px; | |
} |
NewerOlder