$(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: [[1285891200000,9.85424],[1285977600000,9.85534],[1286064000000,9.85534],[1286150400000,9.85534],[1286236800000,9.8578],[1286323200000,9.8578],[1286409600000,9.86026],[1286496000000,9.86149],[1286582400000,9.86149],[1286668800000,9.86149],[1286755200000,9.86149],[1286841600000,9.86272],[1286928000000,9.86272],[1287014400000,9.86518],[1287100800000,9.8675],[1287187200000,9.86775],[1287273600000,9.86775],[1287360000000,9.86775],[1287446400000,9.87099],[1287532800000,9.87346],[1287619200000,9.87222],[1287705600000,9.87469],[1287792000000,9.87494],[1287878400000,9.87494],[1287964800000,9.87494],[1288051200000,9.87839],[1288137600000,9.87715],[1288224000000,9.87592],[1288310400000,9.87962],[1288396800000,9.88011],[1288483200000,9.88011]], 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, 9.854242],[1285891200000, 9.854242],[1285977600000, 9.855345],[1286064000000, 9.855345],[1286150400000, 9.855345],[1286236800000, 9.857802],[1286323200000, 9.857802],[1286409600000, 9.860259],[1286496000000, 9.861489],[1286582400000, 9.861489],[1286668800000, 9.861489],[1286755200000, 9.861489],[1286841600000, 9.862718],[1286928000000, 9.862718],[1287014400000, 9.865178],[1287100800000, 9.867498],[1287187200000, 9.867748],[1287273600000, 9.867748],[1287360000000, 9.867748],[1287446400000, 9.870992],[1287532800000, 9.873456],[1287619200000, 9.872224],[1287705600000, 9.874688],[1287792000000, 9.874938],[1287878400000, 9.874938],[1287964800000, 9.874938],[1288051200000, 9.878387],[1288137600000, 9.877154],[1288224000000, 9.875921],[1288310400000, 9.879620],[1288396800000, 9.880105],[1288483200000, 9.880105]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });