/usr/share/doc/libjs-rickshaw/examples/bars.html is in libjs-rickshaw 1.5.1.dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | <!doctype>
<head>
<link type="text/css" rel="stylesheet" href="css/graph.css">
<script src="/usr/share/javascript/d3/d3.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js"></script>
<script src="/usr/share/javascript/rickshaw/rickshaw.js"></script>
</head>
<body>
<div id="chart"></div>
<script>
// set up our data series with 50 random data points
var seriesData = [ [], [], [] ];
var random = new Rickshaw.Fixtures.RandomData(150);
for (var i = 0; i < 70; i++) {
random.addData(seriesData);
}
// instantiate our graph!
var graph = new Rickshaw.Graph( {
element: document.getElementById("chart"),
width: 960,
height: 500,
renderer: 'bar',
series: [
{
color: "#c05020",
data: seriesData[0],
}, {
color: "#30c020",
data: seriesData[1],
}, {
color: "#6060c0",
data: seriesData[2],
}
]
} );
graph.render();
</script>
</body>
|