$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1480550400000,6.11055],[1480636800000,6.09851],[1480723200000,6.1395],[1480809600000,6.1395],[1480896000000,6.1395],[1480982400000,6.213],[1481068800000,6.25568],[1481155200000,6.30523],[1481241600000,6.22729],[1481328000000,6.14703],[1481414400000,6.14703],[1481500800000,6.14703],[1481587200000,6.22747],[1481673600000,6.23317],[1481760000000,6.30639],[1481846400000,6.16432],[1481932800000,6.21896],[1482019200000,6.21896],[1482105600000,6.21896],[1482192000000,6.23667],[1482278400000,6.22157],[1482364800000,6.24791],[1482451200000,6.22576],[1482537600000,6.22211],[1482624000000,6.22211],[1482710400000,6.22211],[1482796800000,6.24552],[1482883200000,6.24552],[1482969600000,6.35313],[1483056000000,6.43905],[1483142400000,6.43905]], 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: [[1480550400000, 6.110547],[1480550400000, 6.110547],[1480636800000, 6.098515],[1480723200000, 6.139500],[1480809600000, 6.139500],[1480896000000, 6.139500],[1480982400000, 6.213005],[1481068800000, 6.255679],[1481155200000, 6.305233],[1481241600000, 6.227291],[1481328000000, 6.147031],[1481414400000, 6.147031],[1481500800000, 6.147031],[1481587200000, 6.227471],[1481673600000, 6.233171],[1481760000000, 6.306386],[1481846400000, 6.164323],[1481932800000, 6.218960],[1482019200000, 6.218960],[1482105600000, 6.218960],[1482192000000, 6.236669],[1482278400000, 6.221569],[1482364800000, 6.247911],[1482451200000, 6.225760],[1482537600000, 6.222111],[1482624000000, 6.222111],[1482710400000, 6.222111],[1482796800000, 6.245517],[1482883200000, 6.245517],[1482969600000, 6.353133],[1483056000000, 6.439048],[1483142400000, 6.439048]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });