PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` (function($) { 'use strict'; var options = { legend: { show: false }, series: { label: "", curvedLines: { active: true, nrSplinePoints: 20 }, }, tooltip: { show: true, content: "x : %x | y : %y" }, grid: { hoverable: true, borderWidth: 0, labelMargin: 0, axisMargin: 0, minBorderMargin: 0, }, yaxis: { min: 0, max: 30, color: 'transparent', font: { size: 0, } }, xaxis: { color: 'transparent', font: { size: 0, } } }; // sale-diff var chart = AmCharts.makeChart("sale-diff", { "type": "serial", "theme": "light", "dataDateFormat": "YYYY-MM-DD", "precision": 2, "valueAxes": [{ "id": "v1", "fontSize": 0, "axisAlpha": 0, "lineAlpha": 0, "gridAlpha": 0, "position": "left", "autoGridCount": false, "labelFunction": function(value) { return "$" + Math.round(value) + "M"; } }], "graphs": [{ "id": "g3", "valueAxis": "v1", "lineColor": "#2ed8b6", "fillColors": "#2ed8b6", "fillAlphas": 0.3, "type": "column", "title": "Actual Sales", "valueField": "sales2", "columnWidth": 0.5, "legendValueText": "$[[value]]M", "balloonText": "[[title]]
$[[value]]M" }, { "id": "g4", "valueAxis": "v1", "lineColor": "#2ed8b6", "fillColors": "#2ed8b6", "fillAlphas": 1, "type": "column", "title": "Target Sales", "valueField": "sales1", "columnWidth": 0.5, "legendValueText": "$[[value]]M", "balloonText": "[[title]]
$[[value]]M" }], "chartCursor": { "pan": true, "valueLineEnabled": true, "valueLineBalloonEnabled": true, "cursorAlpha": 0, "valueLineAlpha": 0.2 }, "categoryField": "date", "categoryAxis": { "parseDates": true, "axisAlpha": 0, "lineAlpha": 0, "gridAlpha": 0, "minorGridEnabled": true, }, "balloon": { "borderThickness": 1, "shadowAlpha": 0 }, "export": { "enabled": true }, "dataProvider": [{ "date": "2013-01-16", "sales1": 5, "sales2": 8 }, { "date": "2013-01-17", "sales1": 4, "sales2": 6 }, { "date": "2013-01-18", "sales1": 5, "sales2": 2 }, { "date": "2013-01-19", "sales1": 8, "sales2": 9 }, { "date": "2013-01-20", "sales1": 9, "sales2": 6 }] }); //real-time update $(function() { // We use an inline data source in the example, usually data would // be fetched from a server var data = [], totalPoints = 300; function getRandomData() { if (data.length > 0) data = data.slice(1); // Do a random walk while (data.length < totalPoints) { var prev = data.length > 0 ? data[data.length - 1] : 50, y = prev + Math.random() * 10 - 5; if (y < 0) { y = 0; } else if (y > 100) { y = 100; } data.push(y); } // Zip the generated y values with the x values var res = []; for (var i = 0; i < data.length; ++i) { res.push([i, data[i]]) } return res; } // Set up the control widget var updateInterval = 30; $("#updateInterval").val(updateInterval).change(function() { var v = $(this).val(); if (v && !isNaN(+v)) { updateInterval = +v; if (updateInterval < 1) { updateInterval = 1; } else if (updateInterval > 2000) { updateInterval = 2000; } $(this).val("" + updateInterval); } }); var plot = $.plot("#realtime-profit", [getRandomData()], { lines: { show: true, fill: true, lineWidth: 1, borderWidth: 0, }, shadowSize: 5, highlightColor: "rgba(0,0,0,0.5)", points: { show: true, radius: 0, fill: true, fillColor: '#fff' }, curvedLines: { apply: false, }, legend: { show: false }, series: { label: "", color: "#2ed8b6", curvedLines: { active: true, nrSplinePoints: 20 }, }, tooltip: { show: true, content: "x : %x | y : %y" }, grid: { hoverable: true, borderWidth: 0, minBorderMargin: 0, }, yaxis: { min: 0, max: 100, }, xaxis: { font: { size: 0, } } }); function update() { plot.setData([getRandomData()]); // Since the axes don't change, we don't need to call plot.setupGrid() plot.draw(); setTimeout(update, updateInterval); } update(); }); $(function() { // sale start $.plot($("#sec-ecommerce-chart-line"), [{ data: [ [0, 18], [1, 10], [2, 20], [3, 10], [4, 27], [5, 15], [6, 20], [7, 24], [8, 20], [9, 16], [10, 18], [11, 10], [12, 20], [13, 10], [14, 27], ], color: "#fff", lines: { show: true, fill: false, lineWidth: 2 }, points: { show: true, radius: 3, fill: true, fillColor: '#fff' }, curvedLines: { apply: false, } }], options); $.plot($("#sec-ecommerce-chart-bar"), [{ data: [ [0, 18], [1, 10], [2, 20], [3, 10], [4, 27], [5, 15], [6, 20], [7, 24], [8, 20], [9, 16], [10, 18], [11, 10], [12, 20], [13, 10], [14, 27], ], color: "#5ffddd", bars: { show: true, lineWidth: 1, fill: true, fillColor: { colors: [{ opacity: 1 }, { opacity: 1 }] }, barWidth: 0.6, align: 'center', horizontal: false }, points: { show: false }, }], options); }); })(jQuery);