$(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: [[1351728000000,1.40617],[1351814400000,1.40708],[1351900800000,1.40113],[1351987200000,1.40113],[1352073600000,1.40113],[1352160000000,1.3909],[1352246400000,1.3973],[1352332800000,1.39188],[1352419200000,1.39412],[1352505600000,1.38962],[1352592000000,1.38962],[1352678400000,1.38962],[1352764800000,1.39382],[1352851200000,1.38519],[1352937600000,1.38922],[1353024000000,1.3854],[1353110400000,1.38233],[1353196800000,1.38233],[1353283200000,1.38233],[1353369600000,1.3838],[1353456000000,1.39581],[1353542400000,1.39708],[1353628800000,1.40688],[1353715200000,1.40785],[1353801600000,1.40785],[1353888000000,1.40785],[1353974400000,1.41231],[1354060800000,1.40805],[1354147200000,1.4035],[1354233600000,1.41308]], 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: [[1351728000000, 1.406175],[1351728000000, 1.406175],[1351814400000, 1.407085],[1351900800000, 1.401133],[1351987200000, 1.401133],[1352073600000, 1.401133],[1352160000000, 1.390896],[1352246400000, 1.397301],[1352332800000, 1.391882],[1352419200000, 1.394123],[1352505600000, 1.389621],[1352592000000, 1.389621],[1352678400000, 1.389621],[1352764800000, 1.393822],[1352851200000, 1.385191],[1352937600000, 1.389223],[1353024000000, 1.385403],[1353110400000, 1.382330],[1353196800000, 1.382330],[1353283200000, 1.382330],[1353369600000, 1.383798],[1353456000000, 1.395806],[1353542400000, 1.397084],[1353628800000, 1.406877],[1353715200000, 1.407854],[1353801600000, 1.407854],[1353888000000, 1.407854],[1353974400000, 1.412311],[1354060800000, 1.408050],[1354147200000, 1.403497],[1354233600000, 1.413075]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });