forked from wownero/diff-chart
parent
fea284a71a
commit
a00f8d4ac5
@ -0,0 +1,59 @@
|
||||
<html>
|
||||
<header><title>Aeon nonce</title>
|
||||
<!-- Styles -->
|
||||
<style>
|
||||
#chartdiv {
|
||||
width : 100%;
|
||||
height : 500px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Resources -->
|
||||
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
|
||||
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
|
||||
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
|
||||
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
||||
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
|
||||
<script src="js/util.js"></script>
|
||||
<script src="data/aeon-data-0.js"></script>
|
||||
<script src="data/aeon-data-1.js"></script>
|
||||
<script src="data/aeon-data-2.js"></script>
|
||||
<script src="data/aeon-data-3.js"></script>
|
||||
<script src="data/aeon-data-4.js"></script>
|
||||
<script src="data/aeon-data-5.js"></script>
|
||||
<script src="data/aeon-data-6.js"></script>
|
||||
<script src="data/aeon-data-7.js"></script>
|
||||
<script src="data/aeon-data-8.js"></script>
|
||||
<script src="data/aeon-data-9.js"></script>
|
||||
<script src="data/aeon-data-10.js"></script>
|
||||
<script src="js/nonce.js"></script>
|
||||
|
||||
<!-- Chart code -->
|
||||
<script>
|
||||
var chart = get_chart([].concat(
|
||||
chartData_0,
|
||||
chartData_1,
|
||||
chartData_2,
|
||||
chartData_3,
|
||||
chartData_4,
|
||||
chartData_5,
|
||||
chartData_6,
|
||||
chartData_7,
|
||||
chartData_8,
|
||||
chartData_9,
|
||||
chartData_10,
|
||||
));
|
||||
|
||||
function togglePan() {
|
||||
chart.chartCursor.pan = document.getElementById("pan").checked;
|
||||
}
|
||||
|
||||
</script>
|
||||
</header>
|
||||
<body>
|
||||
<h1>Aeon nonce</h1>
|
||||
<div id="chartdiv"></div>
|
||||
<p><input type="checkbox" id="pan" onclick="togglePan()">Enable panning</p>
|
||||
<p><a href="./">Back to top</a></p>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,67 @@
|
||||
function get_chart(chartData) {
|
||||
chartData.shift();
|
||||
|
||||
for (var i = 0; i < chartData.length; ++i) {
|
||||
chartData[i].date = new Date(1000 * chartData[i][0]);
|
||||
chartData[i].height = i + 1;
|
||||
chartData[i].nonce = chartData[i][1];
|
||||
}
|
||||
|
||||
var chart = AmCharts.makeChart("chartdiv", {
|
||||
"type": "serial",
|
||||
"theme": "light",
|
||||
"marginRight": 80,
|
||||
"autoMarginOffset": 20,
|
||||
"marginTop": 7,
|
||||
"dataProvider": chartData,
|
||||
"valueAxes": [{
|
||||
"axisAlpha": 0,
|
||||
}],
|
||||
"mouseWheelZoomEnabled": true,
|
||||
"graphs": [{
|
||||
"id": "g1",
|
||||
"lineColor": "#800040",
|
||||
"lineAlpha": 0,
|
||||
"bulletAlpha": 1,
|
||||
"bullet": "square",
|
||||
"bulletSize": 1,
|
||||
"minBulletSize": 1,
|
||||
"balloonText": "Height: <b>[[height]]</b>\nNonce: <b>[[value]]</b>\n",
|
||||
"showBalloonAt": "close",
|
||||
"title": "nonce",
|
||||
"valueField": "nonce",
|
||||
"balloon":{
|
||||
"cornerRadius": 10,
|
||||
"animationDuration": 0,
|
||||
}
|
||||
}],
|
||||
"chartCursor": {
|
||||
"pan": false,
|
||||
"categoryBalloonEnabled": false,
|
||||
"animationDuration": 0,
|
||||
"cursorAlpha": 0,
|
||||
},
|
||||
"categoryField": "date",
|
||||
"categoryAxis": {
|
||||
"parseDates": true,
|
||||
"minPeriod": "ss",
|
||||
"axisColor": "#DADADA",
|
||||
"dashLength": 1,
|
||||
"minorGridEnabled": true
|
||||
},
|
||||
"export": {
|
||||
"enabled": true,
|
||||
"position": "bottom-right"
|
||||
}
|
||||
});
|
||||
|
||||
// this method is called when chart is first inited as we listen for "rendered" event
|
||||
function zoomChart() {
|
||||
// different zoom methods can be used - zoomToIndexes, zoomToDates, zoomToCategoryValues
|
||||
chart.zoomToIndexes(0, chartData.length - 1);
|
||||
}
|
||||
chart.addListener("rendered", zoomChart);
|
||||
zoomChart();
|
||||
|
||||
return chart;
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
<html>
|
||||
<header><title>Monero nonce</title>
|
||||
<!-- Styles -->
|
||||
<style>
|
||||
#chartdiv {
|
||||
width : 100%;
|
||||
height : 500px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Resources -->
|
||||
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
|
||||
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
|
||||
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
|
||||
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
||||
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
|
||||
<script src="js/util.js"></script>
|
||||
<script src="data/monero-data-0.js"></script>
|
||||
<script src="data/monero-data-1.js"></script>
|
||||
<script src="data/monero-data-2.js"></script>
|
||||
<script src="data/monero-data-3.js"></script>
|
||||
<script src="data/monero-data-4.js"></script>
|
||||
<script src="data/monero-data-5.js"></script>
|
||||
<script src="data/monero-data-6.js"></script>
|
||||
<script src="data/monero-data-7.js"></script>
|
||||
<script src="data/monero-data-8.js"></script>
|
||||
<script src="data/monero-data-9.js"></script>
|
||||
<script src="data/monero-data-10.js"></script>
|
||||
<script src="data/monero-data-11.js"></script>
|
||||
<script src="data/monero-data-12.js"></script>
|
||||
<script src="data/monero-data-13.js"></script>
|
||||
<script src="data/monero-data-14.js"></script>
|
||||
<script src="data/monero-data-15.js"></script>
|
||||
<script src="data/monero-data-16.js"></script>
|
||||
<script src="data/monero-data-17.js"></script>
|
||||
<script src="js/nonce.js"></script>
|
||||
|
||||
<!-- Chart code -->
|
||||
<script>
|
||||
var chart = get_chart([].concat(
|
||||
chartData_0,
|
||||
chartData_1,
|
||||
chartData_2,
|
||||
chartData_3,
|
||||
chartData_4,
|
||||
chartData_5,
|
||||
chartData_6,
|
||||
chartData_7,
|
||||
chartData_8,
|
||||
chartData_9,
|
||||
chartData_10,
|
||||
chartData_11,
|
||||
chartData_12,
|
||||
chartData_13,
|
||||
chartData_14,
|
||||
chartData_15,
|
||||
chartData_16,
|
||||
chartData_17,
|
||||
));
|
||||
|
||||
function togglePan() {
|
||||
chart.chartCursor.pan = document.getElementById("pan").checked;
|
||||
}
|
||||
|
||||
</script>
|
||||
</header>
|
||||
<body>
|
||||
<h1>Monero nonce</h1>
|
||||
<div id="chartdiv"></div>
|
||||
<p><input type="checkbox" id="pan" onclick="togglePan()">Enable panning</p>
|
||||
<p><a href="./">Back to top</a></p>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,37 @@
|
||||
<html>
|
||||
<header><title>Wownero nonce</title>
|
||||
<!-- Styles -->
|
||||
<style>
|
||||
#chartdiv {
|
||||
width : 100%;
|
||||
height : 500px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Resources -->
|
||||
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
|
||||
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
|
||||
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
|
||||
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
|
||||
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
|
||||
<script src="js/util.js"></script>
|
||||
<script src="data/wownero-data-0.js"></script>
|
||||
<script src="js/nonce.js"></script>
|
||||
|
||||
<!-- Chart code -->
|
||||
<script>
|
||||
var chart = get_chart(chartData_0);
|
||||
|
||||
function togglePan() {
|
||||
chart.chartCursor.pan = document.getElementById("pan").checked;
|
||||
}
|
||||
|
||||
</script>
|
||||
</header>
|
||||
<body>
|
||||
<h1>Wownero nonce</h1>
|
||||
<div id="chartdiv"></div>
|
||||
<p><input type="checkbox" id="pan" onclick="togglePan()">Enable panning</p>
|
||||
<p><a href="./">Back to top</a></p>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue