$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1433116800000,2.70971],[1433203200000,2.70971],[1433289600000,2.67869],[1433376000000,2.68381],[1433462400000,2.7219],[1433548800000,2.67773],[1433635200000,2.67773],[1433721600000,2.67773],[1433808000000,2.66847],[1433894400000,2.71284],[1433980800000,2.74271],[1434067200000,2.68815],[1434153600000,2.71742],[1434240000000,2.71742],[1434326400000,2.71742],[1434412800000,2.76185],[1434499200000,2.84749],[1434585600000,2.79893],[1434672000000,2.75436],[1434758400000,2.76991],[1434844800000,2.76991],[1434931200000,2.76991],[1435017600000,2.82505],[1435104000000,2.76402],[1435190400000,2.70805],[1435276800000,2.71161],[1435363200000,2.68339],[1435449600000,2.68339],[1435536000000,2.68339],[1435622400000,2.68339]], 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: [[1433116800000, 2.709714],[1433116800000, 2.709714],[1433203200000, 2.709714],[1433289600000, 2.678693],[1433376000000, 2.683807],[1433462400000, 2.721898],[1433548800000, 2.677726],[1433635200000, 2.677726],[1433721600000, 2.677726],[1433808000000, 2.668466],[1433894400000, 2.712844],[1433980800000, 2.742711],[1434067200000, 2.688150],[1434153600000, 2.717425],[1434240000000, 2.717425],[1434326400000, 2.717425],[1434412800000, 2.761854],[1434499200000, 2.847494],[1434585600000, 2.798934],[1434672000000, 2.754362],[1434758400000, 2.769913],[1434844800000, 2.769913],[1434931200000, 2.769913],[1435017600000, 2.825050],[1435104000000, 2.764015],[1435190400000, 2.708053],[1435276800000, 2.711606],[1435363200000, 2.683393],[1435449600000, 2.683393],[1435536000000, 2.683393],[1435622400000, 2.683393]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });