$(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: [[1112313600000,0.18958],[1112400000000,0.18938],[1112486400000,0.18938],[1112572800000,0.18938],[1112659200000,0.18929],[1112745600000,0.18898],[1112832000000,0.18925],[1112918400000,0.18968],[1113004800000,0.18903],[1113091200000,0.18903],[1113177600000,0.18903],[1113264000000,0.18958],[1113350400000,0.18968],[1113436800000,0.18929],[1113523200000,0.18887],[1113609600000,0.18761],[1113696000000,0.18761],[1113782400000,0.18761],[1113868800000,0.18762],[1113955200000,0.187],[1114041600000,0.18215],[1114128000000,0.18226],[1114214400000,0.18211],[1114300800000,0.18211],[1114387200000,0.18211],[1114473600000,0.18201],[1114560000000,0.18193],[1114646400000,0.18162],[1114732800000,0.18169],[1114819200000,0.18183]], 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: [[1112313600000, 0.189580],[1112313600000, 0.189580],[1112400000000, 0.189380],[1112486400000, 0.189380],[1112572800000, 0.189380],[1112659200000, 0.189290],[1112745600000, 0.188980],[1112832000000, 0.189250],[1112918400000, 0.189680],[1113004800000, 0.189030],[1113091200000, 0.189030],[1113177600000, 0.189030],[1113264000000, 0.189580],[1113350400000, 0.189680],[1113436800000, 0.189290],[1113523200000, 0.188870],[1113609600000, 0.187610],[1113696000000, 0.187610],[1113782400000, 0.187610],[1113868800000, 0.187620],[1113955200000, 0.187000],[1114041600000, 0.182150],[1114128000000, 0.182260],[1114214400000, 0.182110],[1114300800000, 0.182110],[1114387200000, 0.182110],[1114473600000, 0.182010],[1114560000000, 0.181930],[1114646400000, 0.181620],[1114732800000, 0.181690],[1114819200000, 0.181830]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });