$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1128124800000,5.05],[1128211200000,5.05],[1128297600000,5.05],[1128384000000,5.05],[1128470400000,5.05],[1128556800000,5.05],[1128643200000,5.05],[1128729600000,5.05],[1128816000000,5.05],[1128902400000,5.05],[1128988800000,5.05],[1129075200000,5.05],[1129161600000,5.05],[1129248000000,5.05],[1129334400000,5.05],[1129420800000,5.05],[1129507200000,5.05],[1129593600000,5.05],[1129680000000,5.05],[1129766400000,5.05],[1129852800000,5.05],[1129939200000,5.05],[1130025600000,5.05],[1130112000000,5.05],[1130198400000,5.05],[1130284800000,5.05],[1130371200000,5.05],[1130457600000,5.05],[1130544000000,5.05],[1130630400000,5.05],[1130716800000,5.05]], 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, 5.050000],[1128124800000, 5.050000],[1128211200000, 5.050000],[1128297600000, 5.050000],[1128384000000, 5.050000],[1128470400000, 5.050000],[1128556800000, 5.050000],[1128643200000, 5.050000],[1128729600000, 5.050000],[1128816000000, 5.050000],[1128902400000, 5.050000],[1128988800000, 5.050000],[1129075200000, 5.050000],[1129161600000, 5.050000],[1129248000000, 5.050000],[1129334400000, 5.050000],[1129420800000, 5.050000],[1129507200000, 5.050000],[1129593600000, 5.050000],[1129680000000, 5.050000],[1129766400000, 5.050000],[1129852800000, 5.050000],[1129939200000, 5.050000],[1130025600000, 5.050000],[1130112000000, 5.050000],[1130198400000, 5.050000],[1130284800000, 5.050000],[1130371200000, 5.050000],[1130457600000, 5.050000],[1130544000000, 5.050000],[1130630400000, 5.050000],[1130716800000, 5.050000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });