$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1433116800000,2.47986],[1433203200000,2.47986],[1433289600000,2.47724],[1433376000000,2.491],[1433462400000,2.54628],[1433548800000,2.52489],[1433635200000,2.52489],[1433721600000,2.52489],[1433808000000,2.51442],[1433894400000,2.54593],[1433980800000,2.54859],[1434067200000,2.55171],[1434153600000,2.56715],[1434240000000,2.56715],[1434326400000,2.56715],[1434412800000,2.62162],[1434499200000,2.7015],[1434585600000,2.64894],[1434672000000,2.6393],[1434758400000,2.65206],[1434844800000,2.65206],[1434931200000,2.65206],[1435017600000,2.67705],[1435104000000,2.61944],[1435190400000,2.57788],[1435276800000,2.57405],[1435363200000,2.54114],[1435449600000,2.54114],[1435536000000,2.54114],[1435622400000,2.54114]], 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.479857],[1433116800000, 2.479857],[1433203200000, 2.479857],[1433289600000, 2.477242],[1433376000000, 2.491004],[1433462400000, 2.546278],[1433548800000, 2.524888],[1433635200000, 2.524888],[1433721600000, 2.524888],[1433808000000, 2.514416],[1433894400000, 2.545929],[1433980800000, 2.548586],[1434067200000, 2.551706],[1434153600000, 2.567145],[1434240000000, 2.567145],[1434326400000, 2.567145],[1434412800000, 2.621625],[1434499200000, 2.701502],[1434585600000, 2.648945],[1434672000000, 2.639298],[1434758400000, 2.652057],[1434844800000, 2.652057],[1434931200000, 2.652057],[1435017600000, 2.677050],[1435104000000, 2.619437],[1435190400000, 2.577880],[1435276800000, 2.574051],[1435363200000, 2.541143],[1435449600000, 2.541143],[1435536000000, 2.541143],[1435622400000, 2.541143]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });