$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1128124800000,8.64726],[1128211200000,8.64726],[1128297600000,8.64726],[1128384000000,8.58844],[1128470400000,8.57385],[1128556800000,8.58844],[1128643200000,8.66209],[1128729600000,8.73702],[1128816000000,8.73702],[1128902400000,8.73702],[1128988800000,8.7069],[1129075200000,8.64726],[1129161600000,8.60307],[1129248000000,8.61775],[1129334400000,8.64726],[1129420800000,8.64726],[1129507200000,8.64726],[1129593600000,8.69191],[1129680000000,8.61775],[1129766400000,8.57385],[1129852800000,8.60307],[1129939200000,8.64726],[1130025600000,8.64726],[1130112000000,8.64726],[1130198400000,8.57385],[1130284800000,8.60307],[1130371200000,8.69191],[1130457600000,8.7069],[1130544000000,8.72193],[1130630400000,8.72193],[1130716800000,8.72193]], 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: [[1128124800000, 8.647260],[1128124800000, 8.647260],[1128211200000, 8.647260],[1128297600000, 8.647260],[1128384000000, 8.588435],[1128470400000, 8.573854],[1128556800000, 8.588435],[1128643200000, 8.662093],[1128729600000, 8.737024],[1128816000000, 8.737024],[1128902400000, 8.737024],[1128988800000, 8.706897],[1129075200000, 8.647260],[1129161600000, 8.603066],[1129248000000, 8.617747],[1129334400000, 8.647260],[1129420800000, 8.647260],[1129507200000, 8.647260],[1129593600000, 8.691910],[1129680000000, 8.617747],[1129766400000, 8.573854],[1129852800000, 8.603066],[1129939200000, 8.647260],[1130025600000, 8.647260],[1130112000000, 8.647260],[1130198400000, 8.573854],[1130284800000, 8.603066],[1130371200000, 8.691910],[1130457600000, 8.706897],[1130544000000, 8.721934],[1130630400000, 8.721934],[1130716800000, 8.721934]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });