Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattlewissf/2a6768d263ae3927ab630a7d4dbcf00d to your computer and use it in GitHub Desktop.
Save mattlewissf/2a6768d263ae3927ab630a7d4dbcf00d to your computer and use it in GitHub Desktop.
blerg
---
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