Created
May 24, 2017 23:54
-
-
Save mattlewissf/2a6768d263ae3927ab630a7d4dbcf00d to your computer and use it in GitHub Desktop.
blerg
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
--- | |
title: "Hey, what a weird way to set titles" | |
date: 2017-05-24 15:00:00 | |
categories: | |
tags: | |
--- | |
I'm gonna try some stuff! | |
<div id="chart"></div> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="https://cdn.rawgit.com/asielen/D3_Reusable_Charts/master/distro_chart/distrochart.js" charset="utf-8"></script> | |
<script type="text/javascript"> | |
var data = {{site.data.throw}}; | |
var data_len = Object.keys(data).length | |
var displayData = []; | |
for (var i = 0; i < data_len; i++) { | |
displayData.push(data[i].loudness) | |
console.log(data[i]) | |
}; | |
var chart; | |
chart = makeDistroChart({ | |
data: displayData, | |
selector:"#chart", | |
chartSize:{height:900, width:960}, | |
constrainExtremes:false}); | |
chart.renderdataPlots.show({showPlot:true, plotType:'beeswarm',showBeanLines:false, colors:null}); | |
</script> | |
chart1.violinPlots.hide();chart1.dataPlots.show({showPlot:true, plotType:'beeswarm',showBeanLines:false, colors:null});chart1.notchBoxes.hide();chart1.boxPlots.hide();">Beeswarm Plot</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment