Fakes a pair of checkboxes using a dc rowChart and making the bars square.
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
dc.leafletChoroplethChart = function(parent, chartGroup) { | |
var _chart = dc.colorChart(dc.leafletChart({})); | |
var _geojsonLayer = false; | |
var _dataMap = []; | |
var _geojson = false; | |
var _renderPopup = true; | |
var _brushOn = true; | |
var _featureOptions = { | |
'fillColor':'black', |
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 drawChoropleth(data,geojson) { | |
choroChart = dc.leafletChoroplethChart("#choro-map .map") | |
.dimension(regionDimension) | |
.group(avgRegionGroup) | |
.valueAccessor(function(p) { return p.value.average; }) | |
.width(800) | |
.height(400) | |
.center([47.00, 2.00]) | |
.zoom(5) | |
.geojson(geojson) |
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
gistup |
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
Index | Year | |
---|---|---|
1 | 1961 | |
1 | 1964 | |
1 | 1968 | |
1 | 1972 | |
1 | 1973 | |
1 | 1974 | |
1 | 1988 | |
1 | 2013 | |
1 | 2018 |
Clickable legend added to Mike Bostock's stacked bar chart to select display of an individual category. With help from yuuniverse4444’s block #8325617.
Sets y-position of selected nodes according to a defined array after sankey.js has calculated their position.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font: 16px sans-serif; | |
margin: 50px; | |
} | |
#pudomap-legend { | |
margin-top: 30px; | |
} |
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
Released under the GNU General Public License, version 3. | |
(or, optionlly, any higher version) |
OlderNewer