$(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: [[1249084800000,5.3418],[1249171200000,5.3418],[1249257600000,5.3418],[1249344000000,5.35953],[1249430400000,5.3579],[1249516800000,5.36058],[1249603200000,5.36159],[1249689600000,5.36181],[1249776000000,5.36181],[1249862400000,5.36181],[1249948800000,5.34969],[1250035200000,5.34338],[1250121600000,5.34728],[1250208000000,5.37679],[1250294400000,5.38229],[1250380800000,5.38229],[1250467200000,5.38229],[1250553600000,5.37531],[1250640000000,5.39879],[1250726400000,5.40407],[1250812800000,5.44684],[1250899200000,5.51795],[1250985600000,5.51795],[1251072000000,5.51795],[1251158400000,5.51795],[1251244800000,5.52245],[1251331200000,5.53493],[1251417600000,5.53389],[1251504000000,5.55118],[1251590400000,5.55118],[1251676800000,5.55118]], 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: [[1249084800000, 5.341801],[1249084800000, 5.341801],[1249171200000, 5.341801],[1249257600000, 5.341801],[1249344000000, 5.359529],[1249430400000, 5.357904],[1249516800000, 5.360579],[1249603200000, 5.361587],[1249689600000, 5.361812],[1249776000000, 5.361812],[1249862400000, 5.361812],[1249948800000, 5.349688],[1250035200000, 5.343380],[1250121600000, 5.347277],[1250208000000, 5.376788],[1250294400000, 5.382286],[1250380800000, 5.382286],[1250467200000, 5.382286],[1250553600000, 5.375306],[1250640000000, 5.398787],[1250726400000, 5.404068],[1250812800000, 5.446840],[1250899200000, 5.517953],[1250985600000, 5.517953],[1251072000000, 5.517953],[1251158400000, 5.517953],[1251244800000, 5.522455],[1251331200000, 5.534934],[1251417600000, 5.533889],[1251504000000, 5.551180],[1251590400000, 5.551180],[1251676800000, 5.551180]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });