Sha256: 23b9630e2188426e9261fff8c0c47fb26f3a8c507db64b26d87cd8876fa5d52e
Contents?: true
Size: 1.35 KB
Versions: 8
Compression:
Stored size: 1.35 KB
Contents
google.charts.load('43', {packages: ['line']}) if (typeof reportData !== 'undefined' && reportData) { google.charts.setOnLoadCallback(drawChart) } function drawChart () { var simplicityData var simplicityTable var simplicityOptions var simplicityChart var sizeData var sizeTable var sizeOptions var sizeChart simplicityData = reportData.reverse().map(function (e) { return [e.version, e.rules, e.selectors] }) simplicityData.unshift(['Version', 'Rules', 'Selectors']) simplicityTable = google.visualization.arrayToDataTable(simplicityData) simplicityOptions = { chart: { title: 'Simplicity chart', subtitle: 'Evolution of rules and selectors over uStyle releases', vAxis: { format: '' } } } sizeData = reportData.map(function (e) { return [e.version, e.size] }) sizeData.unshift(['Version', 'Size (bytes)']) sizeTable = google.visualization.arrayToDataTable(sizeData) sizeOptions = { chart: { title: 'Size chart', subtitle: 'Evolution of uStyle size over releases', vAxis: { format: '' } } } simplicityChart = new google.charts.Line(document.getElementById('simplicity_chart')) simplicityChart.draw(simplicityTable, simplicityOptions) sizeChart = new google.charts.Line(document.getElementById('size_chart')) sizeChart.draw(sizeTable, sizeOptions) };
Version data entries
8 entries across 8 versions & 2 rubygems