$(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: [[1412121600000,12.9492],[1412208000000,12.9552],[1412294400000,12.95],[1412380800000,12.9405],[1412467200000,12.9405],[1412553600000,12.9405],[1412640000000,12.949],[1412726400000,12.9663],[1412812800000,12.9502],[1412899200000,12.9308],[1412985600000,12.95],[1413072000000,12.95],[1413158400000,12.95],[1413244800000,12.9529],[1413331200000,12.9515],[1413417600000,12.952],[1413504000000,12.9514],[1413590400000,12.9512],[1413676800000,12.9512],[1413763200000,12.9512],[1413849600000,12.9512],[1413936000000,12.9506],[1414022400000,12.9501],[1414108800000,12.9505],[1414195200000,12.9504],[1414281600000,12.9504],[1414368000000,12.9504],[1414454400000,12.9504],[1414540800000,12.9509],[1414627200000,12.9525],[1414713600000,12.9528]], 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: [[1412121600000, 12.949185],[1412121600000, 12.949185],[1412208000000, 12.955218],[1412294400000, 12.950006],[1412380800000, 12.940496],[1412467200000, 12.940496],[1412553600000, 12.940496],[1412640000000, 12.949049],[1412726400000, 12.966295],[1412812800000, 12.950205],[1412899200000, 12.930817],[1412985600000, 12.950023],[1413072000000, 12.950023],[1413158400000, 12.950023],[1413244800000, 12.952882],[1413331200000, 12.951459],[1413417600000, 12.952038],[1413504000000, 12.951445],[1413590400000, 12.951220],[1413676800000, 12.951220],[1413763200000, 12.951220],[1413849600000, 12.951166],[1413936000000, 12.950582],[1414022400000, 12.950077],[1414108800000, 12.950488],[1414195200000, 12.950353],[1414281600000, 12.950353],[1414368000000, 12.950353],[1414454400000, 12.950440],[1414540800000, 12.950945],[1414627200000, 12.952482],[1414713600000, 12.952788]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });