$(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: [[1257033600000,12.708],[1257120000000,12.708],[1257206400000,12.7187],[1257292800000,12.6856],[1257379200000,12.7357],[1257465600000,12.7706],[1257552000000,12.7468],[1257638400000,12.7468],[1257724800000,12.7468],[1257811200000,12.8055],[1257897600000,12.7977],[1257984000000,12.8128],[1258070400000,12.7888],[1258156800000,12.78],[1258243200000,12.78],[1258329600000,12.78],[1258416000000,12.8019],[1258502400000,12.7914],[1258588800000,12.8141],[1258675200000,12.7696],[1258761600000,12.7616],[1258848000000,12.7616],[1258934400000,12.7616],[1259020800000,12.8059],[1259107200000,12.7974],[1259193600000,12.8593],[1259280000000,12.8529],[1259366400000,12.8527],[1259452800000,12.8527],[1259539200000,12.8527]], 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: [[1257033600000, 12.707997],[1257033600000, 12.707997],[1257120000000, 12.707997],[1257206400000, 12.718725],[1257292800000, 12.685575],[1257379200000, 12.735692],[1257465600000, 12.770569],[1257552000000, 12.746807],[1257638400000, 12.746807],[1257724800000, 12.746807],[1257811200000, 12.805460],[1257897600000, 12.797740],[1257984000000, 12.812752],[1258070400000, 12.788801],[1258156800000, 12.779961],[1258243200000, 12.779961],[1258329600000, 12.779961],[1258416000000, 12.801877],[1258502400000, 12.791398],[1258588800000, 12.814103],[1258675200000, 12.769555],[1258761600000, 12.761601],[1258848000000, 12.761601],[1258934400000, 12.761601],[1259020800000, 12.805883],[1259107200000, 12.797391],[1259193600000, 12.859328],[1259280000000, 12.852887],[1259366400000, 12.852726],[1259452800000, 12.852726],[1259539200000, 12.852726]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });