Skip to content

Instantly share code, notes, and snippets.

@NPashaP NPashaP/.block
Created Jan 7, 2018

What would you like to do?
Viz - Bar - negative
license: gpl-3.0
<!DOCTYPE html>
<meta charset="utf-8">
.viz-bar .bar{
fill: steelblue;
<svg width="960" height="500">
<g transform="translate(50,50)"></g>
<script src=""></script>
<script src=""></script>
var data=[{key:2, v0:0, v1:10},{key:3, v0:-4, v1:0},{key:5, v0:0, v1:6},{key:8, v0:0, v1:1},{key:9, v0:-8, v1:0}];"g")
.style("fill",function(d){ return >= 0 ? "steelblue" : "maroon";})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.