Sha256: bade4aa2ae1257c69bb0db7d9ffb00e730bdd9c24ec286785cc858ae23f286e4
Contents?: true
Size: 896 Bytes
Versions: 4
Compression:
Stored size: 896 Bytes
Contents
$(function () { var data, chartOptions; data = [ { label: "Product 1", data: Math.floor (Math.random() * 100 + 250) }, { label: "Product 2", data: Math.floor (Math.random() * 100 + 350) }, { label: "Product 3", data: Math.floor (Math.random() * 100 + 650) }, { label: "Product 4", data: Math.floor (Math.random() * 100 + 50) }, { label: "Product 5", data: Math.floor (Math.random() * 100 + 250) } ]; chartOptions = { series: { pie: { show: true, innerRadius: 0, stroke: { width: 4 } } }, legend: { position: 'ne' }, tooltip: true, tooltipOpts: { content: '%s: %y' }, grid: { hoverable: true }, colors: App.chartColors }; var holder = $('#pie-chart'); if (holder.length) { $.plot(holder, data, chartOptions ); } });
Version data entries
4 entries across 3 versions & 1 rubygems