$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1351728000000,1.28149],[1351814400000,1.28083],[1351900800000,1.28059],[1351987200000,1.28059],[1352073600000,1.28059],[1352160000000,1.27946],[1352246400000,1.27623],[1352332800000,1.27716],[1352419200000,1.27731],[1352505600000,1.27986],[1352592000000,1.27986],[1352678400000,1.27986],[1352764800000,1.28308],[1352851200000,1.28266],[1352937600000,1.28397],[1353024000000,1.28218],[1353110400000,1.28186],[1353196800000,1.28186],[1353283200000,1.28186],[1353369600000,1.28199],[1353456000000,1.28239],[1353542400000,1.28259],[1353628800000,1.28258],[1353715200000,1.28326],[1353801600000,1.28326],[1353888000000,1.28326],[1353974400000,1.28392],[1354060800000,1.28458],[1354147200000,1.2838],[1354233600000,1.28355]], 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, 1.281488],[1351728000000, 1.281488],[1351814400000, 1.280835],[1351900800000, 1.280594],[1351987200000, 1.280594],[1352073600000, 1.280594],[1352160000000, 1.279461],[1352246400000, 1.276232],[1352332800000, 1.277157],[1352419200000, 1.277307],[1352505600000, 1.279856],[1352592000000, 1.279856],[1352678400000, 1.279856],[1352764800000, 1.283083],[1352851200000, 1.282663],[1352937600000, 1.283973],[1353024000000, 1.282177],[1353110400000, 1.281861],[1353196800000, 1.281861],[1353283200000, 1.281861],[1353369600000, 1.281990],[1353456000000, 1.282392],[1353542400000, 1.282586],[1353628800000, 1.282577],[1353715200000, 1.283258],[1353801600000, 1.283258],[1353888000000, 1.283258],[1353974400000, 1.283919],[1354060800000, 1.284577],[1354147200000, 1.283800],[1354233600000, 1.283550]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });