$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс EUR, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс EUR', data: [[1285891200000,10.7956],[1285977600000,10.8571],[1286064000000,10.8571],[1286150400000,10.8571],[1286236800000,10.8405],[1286323200000,10.8998],[1286409600000,10.96],[1286496000000,11.0501],[1286582400000,10.9742],[1286668800000,10.9742],[1286755200000,10.9742],[1286841600000,11.0232],[1286928000000,10.9418],[1287014400000,11.0406],[1287100800000,11.1522],[1287187200000,11.143],[1287273600000,11.143],[1287360000000,11.143],[1287446400000,10.994],[1287532800000,10.9647],[1287619200000,10.9663],[1287705600000,11.0889],[1287792000000,11.0243],[1287878400000,11.0243],[1287964800000,11.0243],[1288051200000,11.1008],[1288137600000,11.0066],[1288224000000,10.9204],[1288310400000,10.9631],[1288396800000,10.9623],[1288483200000,10.9623]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1285891200000, 10.795568],[1285891200000, 10.795568],[1285977600000, 10.857129],[1286064000000, 10.857129],[1286150400000, 10.857129],[1286236800000, 10.840518],[1286323200000, 10.899842],[1286409600000, 10.959957],[1286496000000, 11.050130],[1286582400000, 10.974195],[1286668800000, 10.974195],[1286755200000, 10.974195],[1286841600000, 11.023237],[1286928000000, 10.941765],[1287014400000, 11.040638],[1287100800000, 11.152199],[1287187200000, 11.142990],[1287273600000, 11.142990],[1287360000000, 11.142990],[1287446400000, 10.993959],[1287532800000, 10.964686],[1287619200000, 10.966269],[1287705600000, 11.088899],[1287792000000, 11.024302],[1287878400000, 11.024302],[1287964800000, 11.024302],[1288051200000, 11.100766],[1288137600000, 11.006618],[1288224000000, 10.920381],[1288310400000, 10.963104],[1288396800000, 10.962273],[1288483200000, 10.962273]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });