$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1480550400000,1.00449],[1480636800000,1.00683],[1480723200000,1.01861],[1480809600000,1.01861],[1480896000000,1.01861],[1480982400000,1.03343],[1481068800000,1.03579],[1481155200000,1.03268],[1481241600000,1.02583],[1481328000000,1.01106],[1481414400000,1.01106],[1481500800000,1.01106],[1481587200000,1.02605],[1481673600000,1.02514],[1481760000000,1.03621],[1481846400000,1.01404],[1481932800000,1.01728],[1482019200000,1.01728],[1482105600000,1.01728],[1482192000000,1.01809],[1482278400000,1.01528],[1482364800000,1.01928],[1482451200000,1.01599],[1482537600000,1.01537],[1482624000000,1.01537],[1482710400000,1.01537],[1482796800000,1.01919],[1482883200000,1.01919],[1482969600000,1.03438],[1483056000000,1.05187],[1483142400000,1.05187]], 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, 1.004492],[1480550400000, 1.004492],[1480636800000, 1.006826],[1480723200000, 1.018606],[1480809600000, 1.018606],[1480896000000, 1.018606],[1480982400000, 1.033434],[1481068800000, 1.035790],[1481155200000, 1.032681],[1481241600000, 1.025829],[1481328000000, 1.011063],[1481414400000, 1.011063],[1481500800000, 1.011063],[1481587200000, 1.026045],[1481673600000, 1.025145],[1481760000000, 1.036214],[1481846400000, 1.014042],[1481932800000, 1.017276],[1482019200000, 1.017276],[1482105600000, 1.017276],[1482192000000, 1.018095],[1482278400000, 1.015285],[1482364800000, 1.019283],[1482451200000, 1.015992],[1482537600000, 1.015367],[1482624000000, 1.015367],[1482710400000, 1.015367],[1482796800000, 1.019187],[1482883200000, 1.019187],[1482969600000, 1.034375],[1483056000000, 1.051871],[1483142400000, 1.051871]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });