mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-11-03 01:01:41 +00:00
118 lines
3.6 KiB
HTML
Executable File
118 lines
3.6 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Gap and spacing</title>
|
|
<meta charset="utf-8">
|
|
<link href="../content/shared/styles/examples-offline.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.common.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.rtl.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.mobile.min.css" rel="stylesheet">
|
|
<script src="../../js/jquery.min.js"></script>
|
|
<script src="../../js/jszip.min.js"></script>
|
|
<script src="../../js/kendo.all.min.js"></script>
|
|
<script src="../content/shared/js/console.js"></script>
|
|
<script>
|
|
|
|
</script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<a class="offline-button" href="../index.html">Back</a>
|
|
|
|
<div id="example">
|
|
<div class="configurator">
|
|
<div class="header">Configurator</div>
|
|
<div class="box-col">
|
|
<h4>Gap</h4>
|
|
<ul class="options">
|
|
<li>
|
|
<input id="gap" type="number" value="1.5" step="0.1" style="width: 80px;" />
|
|
<button id="getGap" class="k-button">Set gap</button>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="box-col">
|
|
<h4>Spacing</h4>
|
|
<ul class="options">
|
|
<li>
|
|
<input id="spacing" type="number" value="0.4" step="0.1" style="width: 80px;" />
|
|
<button id="getSpacing" class="k-button">Set spacing</button>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="demo-section k-content wide">
|
|
<div id="chart"></div>
|
|
</div>
|
|
|
|
<script>
|
|
function createChart() {
|
|
$("#chart").kendoChart({
|
|
title: {
|
|
text: "Site Visitors Stats /thousands/"
|
|
},
|
|
legend: {
|
|
position: "bottom"
|
|
},
|
|
seriesDefaults: {
|
|
type: "column"
|
|
},
|
|
series: [{
|
|
name: "Total Visits",
|
|
data: [56000, 63000, 74000, 91000, 117000, 138000]
|
|
}, {
|
|
name: "Unique visitors",
|
|
data: [52000, 34000, 23000, 48000, 67000, 83000]
|
|
}],
|
|
valueAxis: {
|
|
line: {
|
|
visible: false
|
|
}
|
|
},
|
|
categoryAxis: {
|
|
categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun"],
|
|
majorGridLines: {
|
|
visible: false
|
|
}
|
|
},
|
|
tooltip: {
|
|
visible: true,
|
|
format: "{0}"
|
|
}
|
|
});
|
|
}
|
|
|
|
$(document).ready(function () {
|
|
createChart();
|
|
|
|
$("#example").bind("kendo:skinChange", createChart);
|
|
|
|
var chart = $("#chart").data("kendoChart"),
|
|
firstSeries = chart.options.series;
|
|
|
|
$("#getGap").click(function () {
|
|
firstSeries[0].gap = parseFloat($("#gap").val(), 10);
|
|
chart.redraw();
|
|
});
|
|
|
|
$("#getSpacing").click(function () {
|
|
firstSeries[0].spacing = parseFloat($("#spacing").val(), 10);
|
|
chart.redraw();
|
|
});
|
|
|
|
if (kendo.ui.NumericTextBox) {
|
|
$("#gap").kendoNumericTextBox();
|
|
$("#spacing").kendoNumericTextBox();
|
|
}
|
|
});
|
|
</script>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|