$(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: [[1472688000000,3.12981],[1472774400000,3.18819],[1472860800000,3.19956],[1472947200000,3.19956],[1473033600000,3.19956],[1473120000000,3.23213],[1473206400000,3.25255],[1473292800000,3.26616],[1473379200000,3.27244],[1473465600000,3.25049],[1473552000000,3.25049],[1473638400000,3.25049],[1473724800000,3.22454],[1473811200000,3.21955],[1473897600000,3.18465],[1473984000000,3.18334],[1474070400000,3.13917],[1474156800000,3.13917],[1474243200000,3.13917],[1474329600000,3.10998],[1474416000000,3.11511],[1474502400000,3.13717],[1474588800000,3.19876],[1474675200000,3.20186],[1474761600000,3.20186],[1474848000000,3.20186],[1474934400000,3.19436],[1475020800000,3.18091],[1475107200000,3.19833],[1475193600000,3.21623]], 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: [[1472688000000, 3.129806],[1472688000000, 3.129806],[1472774400000, 3.188191],[1472860800000, 3.199559],[1472947200000, 3.199559],[1473033600000, 3.199559],[1473120000000, 3.232131],[1473206400000, 3.252548],[1473292800000, 3.266165],[1473379200000, 3.272438],[1473465600000, 3.250488],[1473552000000, 3.250488],[1473638400000, 3.250488],[1473724800000, 3.224536],[1473811200000, 3.219553],[1473897600000, 3.184647],[1473984000000, 3.183343],[1474070400000, 3.139169],[1474156800000, 3.139169],[1474243200000, 3.139169],[1474329600000, 3.109984],[1474416000000, 3.115113],[1474502400000, 3.137167],[1474588800000, 3.198761],[1474675200000, 3.201860],[1474761600000, 3.201860],[1474848000000, 3.201860],[1474934400000, 3.194364],[1475020800000, 3.180914],[1475107200000, 3.198330],[1475193600000, 3.216234]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });