$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1364774400000,6.43713],[1364860800000,6.43713],[1364947200000,6.47631],[1365033600000,6.45803],[1365120000000,6.43719],[1365206400000,6.4482],[1365292800000,6.4482],[1365379200000,6.4482],[1365465600000,6.44219],[1365552000000,6.45059],[1365638400000,6.45657],[1365724800000,6.46367],[1365811200000,6.45853],[1365897600000,6.45853],[1365984000000,6.45853],[1366070400000,6.46048],[1366156800000,6.4698],[1366243200000,6.47139],[1366329600000,6.47149],[1366416000000,6.46728],[1366502400000,6.46728],[1366588800000,6.46728],[1366675200000,6.44791],[1366761600000,6.44381],[1366848000000,6.43816],[1366934400000,6.45839],[1367020800000,6.45388],[1367107200000,6.45388],[1367193600000,6.45388],[1367280000000,6.47949]], 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: [[1364774400000, 6.437130],[1364774400000, 6.437130],[1364860800000, 6.437130],[1364947200000, 6.476312],[1365033600000, 6.458034],[1365120000000, 6.437187],[1365206400000, 6.448201],[1365292800000, 6.448201],[1365379200000, 6.448201],[1365465600000, 6.442186],[1365552000000, 6.450595],[1365638400000, 6.456568],[1365724800000, 6.463673],[1365811200000, 6.458530],[1365897600000, 6.458530],[1365984000000, 6.458530],[1366070400000, 6.460482],[1366156800000, 6.469796],[1366243200000, 6.471392],[1366329600000, 6.471492],[1366416000000, 6.467283],[1366502400000, 6.467283],[1366588800000, 6.467283],[1366675200000, 6.447914],[1366761600000, 6.443807],[1366848000000, 6.438159],[1366934400000, 6.458391],[1367020800000, 6.453880],[1367107200000, 6.453880],[1367193600000, 6.453880],[1367280000000, 6.479489]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });