$(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: [[1351728000000,6.551],[1351814400000,6.55143],[1351900800000,6.53913],[1351987200000,6.53913],[1352073600000,6.53913],[1352160000000,6.52191],[1352246400000,6.53281],[1352332800000,6.53656],[1352419200000,6.5285],[1352505600000,6.51951],[1352592000000,6.51951],[1352678400000,6.51951],[1352764800000,6.53679],[1352851200000,6.53061],[1352937600000,6.54183],[1353024000000,6.52661],[1353110400000,6.51431],[1353196800000,6.51431],[1353283200000,6.51431],[1353369600000,6.5255],[1353456000000,6.52824],[1353542400000,6.52287],[1353628800000,6.52445],[1353715200000,6.52966],[1353801600000,6.52966],[1353888000000,6.52966],[1353974400000,6.53721],[1354060800000,6.54354],[1354147200000,6.53171],[1354233600000,6.54985]], 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: [[1351728000000, 6.551003],[1351728000000, 6.551003],[1351814400000, 6.551432],[1351900800000, 6.539126],[1351987200000, 6.539126],[1352073600000, 6.539126],[1352160000000, 6.521908],[1352246400000, 6.532814],[1352332800000, 6.536557],[1352419200000, 6.528497],[1352505600000, 6.519511],[1352592000000, 6.519511],[1352678400000, 6.519511],[1352764800000, 6.536788],[1352851200000, 6.530609],[1352937600000, 6.541830],[1353024000000, 6.526610],[1353110400000, 6.514310],[1353196800000, 6.514310],[1353283200000, 6.514310],[1353369600000, 6.525503],[1353456000000, 6.528237],[1353542400000, 6.522871],[1353628800000, 6.524454],[1353715200000, 6.529657],[1353801600000, 6.529657],[1353888000000, 6.529657],[1353974400000, 6.537206],[1354060800000, 6.543537],[1354147200000, 6.531712],[1354233600000, 6.549854]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });