$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1364774400000,10.1848],[1364860800000,10.1874],[1364947200000,10.1874],[1365033600000,10.1874],[1365120000000,10.1874],[1365206400000,10.1874],[1365292800000,10.1874],[1365379200000,10.1874],[1365465600000,10.1874],[1365552000000,10.1874],[1365638400000,10.1874],[1365724800000,10.1887],[1365811200000,10.1887],[1365897600000,10.1887],[1365984000000,10.1887],[1366070400000,10.1861],[1366156800000,10.1861],[1366243200000,10.1861],[1366329600000,10.1861],[1366416000000,10.1861],[1366502400000,10.1861],[1366588800000,10.1861],[1366675200000,10.1861],[1366761600000,10.1861],[1366848000000,10.1887],[1366934400000,10.1887],[1367020800000,10.1874],[1367107200000,10.1874],[1367193600000,10.1874],[1367280000000,10.1874]], 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: [[1364774400000, 10.184760],[1364774400000, 10.184760],[1364860800000, 10.187357],[1364947200000, 10.187357],[1365033600000, 10.187357],[1365120000000, 10.187357],[1365206400000, 10.187357],[1365292800000, 10.187357],[1365379200000, 10.187357],[1365465600000, 10.187357],[1365552000000, 10.187357],[1365638400000, 10.187357],[1365724800000, 10.188655],[1365811200000, 10.188655],[1365897600000, 10.188655],[1365984000000, 10.188655],[1366070400000, 10.186058],[1366156800000, 10.186058],[1366243200000, 10.186058],[1366329600000, 10.186058],[1366416000000, 10.186058],[1366502400000, 10.186058],[1366588800000, 10.186058],[1366675200000, 10.186058],[1366761600000, 10.186058],[1366848000000, 10.188655],[1366934400000, 10.188655],[1367020800000, 10.187357],[1367107200000, 10.187357],[1367193600000, 10.187357],[1367280000000, 10.187357]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });