$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1412121600000,21.0129],[1412208000000,20.972],[1412294400000,20.9726],[1412380800000,20.891],[1412467200000,20.891],[1412553600000,20.891],[1412640000000,20.8042],[1412726400000,20.7345],[1412812800000,20.8244],[1412899200000,20.7764],[1412985600000,20.9881],[1413072000000,20.9881],[1413158400000,20.9881],[1413244800000,20.7687],[1413331200000,20.839],[1413417600000,20.6157],[1413504000000,20.6162],[1413590400000,20.7171],[1413676800000,20.7171],[1413763200000,20.7171],[1413849600000,20.8765],[1413936000000,20.9019],[1414022400000,20.9201],[1414108800000,20.784],[1414195200000,20.7576],[1414281600000,20.7576],[1414368000000,20.7576],[1414454400000,20.7861],[1414540800000,20.862],[1414627200000,20.9514],[1414713600000,20.8584]], 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, 21.012853],[1412121600000, 21.012853],[1412208000000, 20.972020],[1412294400000, 20.972620],[1412380800000, 20.891028],[1412467200000, 20.891028],[1412553600000, 20.891028],[1412640000000, 20.804228],[1412726400000, 20.734521],[1412812800000, 20.824392],[1412899200000, 20.776389],[1412985600000, 20.988082],[1413072000000, 20.988082],[1413158400000, 20.988082],[1413244800000, 20.768653],[1413331200000, 20.839029],[1413417600000, 20.615667],[1413504000000, 20.616187],[1413590400000, 20.717077],[1413676800000, 20.717077],[1413763200000, 20.717077],[1413849600000, 20.876531],[1413936000000, 20.901919],[1414022400000, 20.920112],[1414108800000, 20.783986],[1414195200000, 20.757594],[1414281600000, 20.757594],[1414368000000, 20.757594],[1414454400000, 20.786056],[1414540800000, 20.862029],[1414627200000, 20.951433],[1414713600000, 20.858418]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });