$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1446336000000,0.35719],[1446422400000,0.35719],[1446508800000,0.36074],[1446595200000,0.36051],[1446681600000,0.36148],[1446768000000,0.36161],[1446854400000,0.35565],[1446940800000,0.35565],[1447027200000,0.35565],[1447113600000,0.35191],[1447200000000,0.35349],[1447286400000,0.35244],[1447372800000,0.35013],[1447459200000,0.34606],[1447545600000,0.34606],[1447632000000,0.34606],[1447718400000,0.34918],[1447804800000,0.36303],[1447891200000,0.36916],[1447977600000,0.36725],[1448064000000,0.36975],[1448150400000,0.36975],[1448236800000,0.36975],[1448323200000,0.36684],[1448409600000,0.36496],[1448496000000,0.36304],[1448582400000,0.35926],[1448668800000,0.36058],[1448755200000,0.36058],[1448841600000,0.36058]], 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: [[1446336000000, 0.357190],[1446336000000, 0.357190],[1446422400000, 0.357190],[1446508800000, 0.360740],[1446595200000, 0.360510],[1446681600000, 0.361480],[1446768000000, 0.361610],[1446854400000, 0.355650],[1446940800000, 0.355650],[1447027200000, 0.355650],[1447113600000, 0.351910],[1447200000000, 0.353490],[1447286400000, 0.352440],[1447372800000, 0.350130],[1447459200000, 0.346060],[1447545600000, 0.346060],[1447632000000, 0.346060],[1447718400000, 0.349180],[1447804800000, 0.363030],[1447891200000, 0.369160],[1447977600000, 0.367250],[1448064000000, 0.369750],[1448150400000, 0.369750],[1448236800000, 0.369750],[1448323200000, 0.366840],[1448409600000, 0.364960],[1448496000000, 0.363040],[1448582400000, 0.359260],[1448668800000, 0.360580],[1448755200000, 0.360580],[1448841600000, 0.360580]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });