Commit a0f54bb7582d527c1f4be8319f70f33dbd31d3b2

Authored by Luigi Serra
2 parents 0a87e7be 59a379b4

Merge branch 'master' of http://service.routetopa.eu:7480/WebCompDev/COMPONENTS

datalets/areachart-datalet/areachart-datalet.html
... ... @@ -2,7 +2,7 @@
2 2 @license
3 3 The MIT License (MIT)
4 4  
5   - Copyright (c) 2015 Dipartimento di Informatica - Università di Salerno - Italy
  5 + Copyright (c) 2015 Dipartimento di Informatica - Universit� di Salerno - Italy
6 6  
7 7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 8 of this software and associated documentation files (the "Software"), to deal
... ... @@ -113,7 +113,7 @@ Example:
113 113 }
114 114 };
115 115  
116   -
  116 + //element registration
117 117 AreachartDatalet = Polymer({
118 118 is: 'areachart-datalet',
119 119  
... ... @@ -163,7 +163,6 @@ Example:
163 163 value : "units"
164 164 }
165 165 },
166   -
167 166 /**
168 167 * 'ready' callback extend the AreachartComponentBehavior with HighchartsComponentBehavior and ColumnchartBehavior
169 168 * and run the Datalet workcycle.
... ...
datalets/areachart-datalet/areachart-datalet.png

25.6 KB | W: | H:

449 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
datalets/areachart-datalet/areachart-datalet.xml 0 → 100644
  1 +<component>
  2 + <name>areachart-datalet</name>
  3 + <attributes>
  4 + <attribute>
  5 + <name>data-url</name>
  6 + </attribute>
  7 + <attribute>
  8 + <name>fields</name>
  9 + </attribute>
  10 + </attributes>
  11 + <idm>
  12 + <inputs>
  13 + <input>
  14 + <name>Categories</name>
  15 + <description>The chart categories. Its values will be put in the horizontal axis. You need one value for each series.</description>
  16 + <scale>nominal</scale>
  17 + <role>domain</role>
  18 + <selection>11</selection>
  19 + </input>
  20 + <input>
  21 + <name>Series</name>
  22 + <description>The chart series. Its values will be put in the vertical axis.</description>
  23 + <scale>nominal</scale>
  24 + <role>domain</role>
  25 + <selection>11</selection>
  26 + </input>
  27 + <layouts>
  28 + <input>
  29 + <name>title</name>
  30 + <description>The label for the title of the chart</description>
  31 + </input>
  32 + <input>
  33 + <name>x-axis-label</name>
  34 + <description>The label for the X axis</description>
  35 + </input>
  36 + <input>
  37 + <name>y-axis-label</name>
  38 + <description>The label for the Y axis</description>
  39 + </input>
  40 + <input>
  41 + <name>suffix</name>
  42 + <description>The values suffix(eg units, dollars, euro, ...)</description>
  43 + </input>
  44 + </layouts>
  45 + </inputs>
  46 + </idm>
  47 +</component>
... ...
datalets/areachart-datalet/demo/index.html
... ... @@ -13,8 +13,8 @@
13 13 <script src="https://code.jquery.com/jquery-2.1.4.min.js" type="text/javascript"></script>
14 14 <link rel="import" href="../areachart-datalet.html" />
15 15  
16   -<areachart-datalet data-url="http://ckan.routetopa.eu/api/action/datastore_search?resource_id=73e02092-85a1-434e-85fe-0c9a43aa9a52&amp;limit=10000"
17   - fields='["result,records,Lat","result,records,Lng"]'></areachart-datalet>
  16 +<areachart-datalet data-url="http://data.iledefrance.fr/api/records/1.0/search?dataset=logement-jeune-2014-2015&facet=departement&facet=ville"
  17 + fields='["facet_groups,facets,name","facet_groups,facets,count"]'></areachart-datalet>
18 18  
19 19 </body>
20 20 </html>
21 21 \ No newline at end of file
... ...