$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1351728000000,7.993],[1351814400000,7.993],[1351900800000,7.993],[1351987200000,7.993],[1352073600000,7.993],[1352160000000,7.993],[1352246400000,7.993],[1352332800000,7.993],[1352419200000,7.993],[1352505600000,7.993],[1352592000000,7.993],[1352678400000,7.993],[1352764800000,7.993],[1352851200000,7.993],[1352937600000,7.993],[1353024000000,7.993],[1353110400000,7.993],[1353196800000,7.993],[1353283200000,7.993],[1353369600000,7.993],[1353456000000,7.993],[1353542400000,7.993],[1353628800000,7.993],[1353715200000,7.993],[1353801600000,7.993],[1353888000000,7.993],[1353974400000,7.993],[1354060800000,7.993],[1354147200000,7.993],[1354233600000,7.993]], 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, 7.993000],[1351728000000, 7.993000],[1351814400000, 7.993000],[1351900800000, 7.993000],[1351987200000, 7.993000],[1352073600000, 7.993000],[1352160000000, 7.993000],[1352246400000, 7.993000],[1352332800000, 7.993000],[1352419200000, 7.993000],[1352505600000, 7.993000],[1352592000000, 7.993000],[1352678400000, 7.993000],[1352764800000, 7.993000],[1352851200000, 7.993000],[1352937600000, 7.993000],[1353024000000, 7.993000],[1353110400000, 7.993000],[1353196800000, 7.993000],[1353283200000, 7.993000],[1353369600000, 7.993000],[1353456000000, 7.993000],[1353542400000, 7.993000],[1353628800000, 7.993000],[1353715200000, 7.993000],[1353801600000, 7.993000],[1353888000000, 7.993000],[1353974400000, 7.993000],[1354060800000, 7.993000],[1354147200000, 7.993000],[1354233600000, 7.993000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });