$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1351728000000,0.25476],[1351814400000,0.25483],[1351900800000,0.2547],[1351987200000,0.2547],[1352073600000,0.2547],[1352160000000,0.2547],[1352246400000,0.25359],[1352332800000,0.25534],[1352419200000,0.25363],[1352505600000,0.25378],[1352592000000,0.25378],[1352678400000,0.25378],[1352764800000,0.2529],[1352851200000,0.25201],[1352937600000,0.25193],[1353024000000,0.25221],[1353110400000,0.252],[1353196800000,0.252],[1353283200000,0.252],[1353369600000,0.2524],[1353456000000,0.25434],[1353542400000,0.25438],[1353628800000,0.25658],[1353715200000,0.25674],[1353801600000,0.25674],[1353888000000,0.25674],[1353974400000,0.25767],[1354060800000,0.25833],[1354147200000,0.25667],[1354233600000,0.25737]], 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, 0.254760],[1351728000000, 0.254760],[1351814400000, 0.254830],[1351900800000, 0.254700],[1351987200000, 0.254700],[1352073600000, 0.254700],[1352160000000, 0.254700],[1352246400000, 0.253590],[1352332800000, 0.255340],[1352419200000, 0.253630],[1352505600000, 0.253780],[1352592000000, 0.253780],[1352678400000, 0.253780],[1352764800000, 0.252900],[1352851200000, 0.252010],[1352937600000, 0.251930],[1353024000000, 0.252210],[1353110400000, 0.252000],[1353196800000, 0.252000],[1353283200000, 0.252000],[1353369600000, 0.252400],[1353456000000, 0.254340],[1353542400000, 0.254380],[1353628800000, 0.256580],[1353715200000, 0.256740],[1353801600000, 0.256740],[1353888000000, 0.256740],[1353974400000, 0.257670],[1354060800000, 0.258330],[1354147200000, 0.256670],[1354233600000, 0.257370]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });