jQuery(function() { var analytics_data = {"labels" : ["01 15 25","01 16 25","01 17 25","01 18 25","01 19 25","01 20 25","01 21 25"], "datas" : ["2","2","1","1","3","1","117"]}; var show_legend = 0;
$show_ticks = true; if( jQuery(window).width() <= 640 ) { $show_ticks = false; } $placeholder_width = jQuery('.analytics-chart-placeholder').outerWidth(); if( $placeholder_width < 340 ) { $placeholder_width = 340; } jQuery('.analytics-chart-placeholder').css( 'width', $placeholder_width + 'px' ); var ctx = document.getElementById("analytics-chart-placeholder-canvas").getContext("2d"); var myLineChart = new Chart(ctx, { type: 'line', data: { labels: analytics_data.labels, datasets: [{ label: "Daily Views", backgroundColor: color(window.chartColors.orange).alpha(0.2).rgbString(), borderColor: window.chartColors.orange, fill: true, data: analytics_data.datas, }] }, options: { responsive: true, title:{ text: "Store Analytics", position: "bottom", }, legend: { position: "bottom", display: show_legend, }, scales: { xAxes: [{ type: "time", time: { format: timeFormat, round: 'day', tooltipFormat: 'll' }, scaleLabel: { display: false, labelString: 'Date' }, ticks:{ display: $show_ticks } }], yAxes: [{ scaleLabel: { display: false, labelString: 'Views' } }] }, } }); });
Additional information
Brand | Band-Aid |
---|---|
UPC | 381371183487 |