$(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: [[1433116800000,15.6295],[1433203200000,15.6295],[1433289600000,15.5497],[1433376000000,15.5733],[1433462400000,15.624],[1433548800000,15.5976],[1433635200000,15.5976],[1433721600000,15.5976],[1433808000000,15.5322],[1433894400000,15.6708],[1433980800000,15.7297],[1434067200000,15.6049],[1434153600000,15.6208],[1434240000000,15.6208],[1434326400000,15.6208],[1434412800000,15.9272],[1434499200000,16.4516],[1434585600000,16.077],[1434672000000,16.0172],[1434758400000,16.1786],[1434844800000,16.1786],[1434931200000,16.1786],[1435017600000,16.3111],[1435104000000,16.0718],[1435190400000,15.7672],[1435276800000,15.8012],[1435363200000,15.5903],[1435449600000,15.5903],[1435536000000,15.5903],[1435622400000,15.5903]], 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: [[1433116800000, 15.629517],[1433116800000, 15.629517],[1433203200000, 15.629517],[1433289600000, 15.549686],[1433376000000, 15.573337],[1433462400000, 15.623953],[1433548800000, 15.597639],[1433635200000, 15.597639],[1433721600000, 15.597639],[1433808000000, 15.532178],[1433894400000, 15.670798],[1433980800000, 15.729721],[1434067200000, 15.604944],[1434153600000, 15.620789],[1434240000000, 15.620789],[1434326400000, 15.620789],[1434412800000, 15.927236],[1434499200000, 16.451642],[1434585600000, 16.076964],[1434672000000, 16.017231],[1434758400000, 16.178604],[1434844800000, 16.178604],[1434931200000, 16.178604],[1435017600000, 16.311069],[1435104000000, 16.071849],[1435190400000, 15.767156],[1435276800000, 15.801167],[1435363200000, 15.590334],[1435449600000, 15.590334],[1435536000000, 15.590334],[1435622400000, 15.590334]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });