$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1351728000000,12.3138],[1351814400000,12.3004],[1351900800000,12.2644],[1351987200000,12.2644],[1352073600000,12.2644],[1352160000000,12.2223],[1352246400000,12.2284],[1352332800000,12.2345],[1352419200000,12.2102],[1352505600000,12.2097],[1352592000000,12.2097],[1352678400000,12.2097],[1352764800000,12.199],[1352851200000,12.2015],[1352937600000,12.1991],[1353024000000,12.1888],[1353110400000,12.1798],[1353196800000,12.1798],[1353283200000,12.1798],[1353369600000,12.1968],[1353456000000,12.2079],[1353542400000,12.1932],[1353628800000,12.1932],[1353715200000,12.1932],[1353801600000,12.1932],[1353888000000,12.1932],[1353974400000,12.2585],[1354060800000,12.2552],[1354147200000,12.2333],[1354233600000,12.2653]], 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, 12.313783],[1351728000000, 12.313783],[1351814400000, 12.300386],[1351900800000, 12.264356],[1351987200000, 12.264356],[1352073600000, 12.264356],[1352160000000, 12.222329],[1352246400000, 12.228406],[1352332800000, 12.234508],[1352419200000, 12.210174],[1352505600000, 12.209745],[1352592000000, 12.209745],[1352678400000, 12.209745],[1352764800000, 12.199031],[1352851200000, 12.201526],[1352937600000, 12.199124],[1353024000000, 12.188762],[1353110400000, 12.179772],[1353196800000, 12.179772],[1353283200000, 12.179772],[1353369600000, 12.196834],[1353456000000, 12.207881],[1353542400000, 12.193243],[1353628800000, 12.193243],[1353715200000, 12.193243],[1353801600000, 12.193243],[1353888000000, 12.193243],[1353974400000, 12.258469],[1354060800000, 12.255236],[1354147200000, 12.233310],[1354233600000, 12.265260]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });