Current state
This commit is contained in:
26
public/assets/plugins/charts-rickshaw/examples/start.html
Normal file
26
public/assets/plugins/charts-rickshaw/examples/start.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!doctype html>
|
||||
<script src="../vendor/d3.v3.js"></script>
|
||||
<script src="../rickshaw.min.js"></script>
|
||||
|
||||
<div id="chart"></div>
|
||||
|
||||
<script>
|
||||
|
||||
var graph = new Rickshaw.Graph( {
|
||||
element: document.querySelector("#chart"),
|
||||
width: 500,
|
||||
height: 200,
|
||||
series: [{
|
||||
color: 'steelblue',
|
||||
data: [
|
||||
{ x: 0, y: 40 },
|
||||
{ x: 1, y: 49 },
|
||||
{ x: 2, y: 38 },
|
||||
{ x: 3, y: 30 },
|
||||
{ x: 4, y: 32 } ]
|
||||
}]
|
||||
});
|
||||
|
||||
graph.render();
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user