Sha256: 76b016585a09685959685dc416e447cf09d782d3847d3173310bad2d2d821ee6
Contents?: true
Size: 884 Bytes
Versions: 4
Compression:
Stored size: 884 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: .5, stroke: { width: 4 } } }, legend: { position: 'ne' }, tooltip: true, tooltipOpts: { content: '%s: %y' }, grid: { hoverable: true }, colors: App.chartColors }; var holder = $('#donut-chart'); if (holder.length) { $.plot(holder, data, chartOptions ); } });
Version data entries
4 entries across 3 versions & 1 rubygems