Remove prematurely committed files

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1652759 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2015-01-18 14:21:25 +00:00
parent 426afa7b93
commit 6f82f47655
1 changed files with 0 additions and 113 deletions

View File

@ -1,113 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Practice Assignment 1</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style>
body {
font: 10px sans-serif;
}
.chart {
font-family: Arial, sans-serif;
font-size: 10px;
}
.axis path, .axis line {
fill: none;
stroke: #0000ff;
shape-rendering: crispEdges;
}
.bar {
z-index: 1000;
}
/* #bar-demo {
border: solid;
}
*/
.chart {
border: solid;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
#set($content_types=$response.response.facet_counts.facet_fields.content_type)
var data=[#foreach($facet in $content_types){"key": "$facet.key", "val": $facet.value}#if($velocityCount != $content_types.size()),#end$#end];
//var margin = {top: 40, right: 40, bottom: 40, left:40},
width = 600,
height = 500;
var x = d3.scale.linear()
.domain([0, d3.max(data, function(d) { return +d.val;})])
.range([0, width]);
var y = d3.scale.ordinal()
.domain(data.map(function(d) {return d.key;}))
.rangeBands([height,0])
var svg = d3.select('#bar-demo').append('svg')
.attr('class', 'chart')
.attr('width', width)
.attr('height', height)
.append('g');
var colors = d3.scale.category20();
svg.selectAll('.chart')
.data(data)
.enter().append('rect')
.attr('class', 'bar')
.attr("fill",function(d,i){return colors(i);})
.attr('x', function(d) { return 0; })
.attr('y', function(d) { return y(d.key); })
.attr('height', function(d) {return y.rangeBand();})
.attr('width', function(d) { return x(+d.val) });
svg.selectAll(".rect")
.data(data)
.enter().append("svg:text")
.attr("x", function(d) { return 0; })
.attr("y", function(d) { return y(d.key) + y.rangeBand()/2; })
.attr("dx", "0.5em")
.attr("dy", "1.50em")
.attr("text-anchor", "left")
.text(function(d) { return d.key + " (" + d.val + ")" });
});
</script>
</head>
<body>
<div id="admin"><a href="#url_root/#/#core_name">Solr Admin</a></div>
<div><a href="#url_for_home">Home</a></div>
<div id="head">
<a href="#url_for_home#if($debug)?debug=true#end"><img src="#{url_root}/img/solr.svg" id="logo"/></a>
</div>
<pre>
$response.response.facet_counts.facet_fields.content_type
</pre>
<hr/>
<div id="bar-demo" style="position: relative; top: 3px; left: 20px;"></div>
</body>
</html>