Sha256: 11f622455f760df783488f8661779ab2d0881c5cb619ecbf5cdd3e6db1b7cd8c
Contents?: true
Size: 764 Bytes
Versions: 56
Compression:
Stored size: 764 Bytes
Contents
$(function() { $("span.pie").peity("pie", { fill: ['#1ab394', '#d7d7d7', '#ffffff'] }) $(".line").peity("line",{ fill: '#1ab394', stroke:'#169c81', }) $(".bar").peity("bar", { fill: ["#1ab394", "#d7d7d7"] }) $(".bar_dashboard").peity("bar", { fill: ["#1ab394", "#d7d7d7"], width:100 }) var updatingChart = $(".updating-chart").peity("line", { fill: '#1ab394',stroke:'#169c81', width: 64 }) setInterval(function() { var random = Math.round(Math.random() * 10) var values = updatingChart.text().split(",") values.shift() values.push(random) updatingChart .text(values.join(",")) .change() }, 1000); });
Version data entries
56 entries across 56 versions & 1 rubygems