$(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: [[1409529600000,13.6058],[1409616000000,13.1141],[1409702400000,13.0087],[1409788800000,12.531],[1409875200000,null],[1409961600000,12.8222],[1410048000000,12.8222],[1410134400000,12.8222],[1410220800000,12.8221],[1410307200000,12.9261],[1410393600000,12.9518],[1410480000000,12.9766],[1410566400000,12.9501],[1410652800000,12.9501],[1410739200000,12.9501],[1410825600000,12.9031],[1410912000000,12.9882],[1410998400000,13.0823],[1411084800000,13.425],[1411171200000,null],[1411257600000,13.4341],[1411344000000,13.4341],[1411430400000,null],[1411516800000,13.5261],[1411603200000,12.9442],[1411689600000,12.9506],[1411776000000,12.9088],[1411862400000,12.9088],[1411948800000,12.9088],[1412035200000,12.9082]], 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: [[1409529600000, 13.605777],[1409529600000, 13.605777],[1409616000000, 13.114112],[1409702400000, 13.008652],[1409788800000, 12.531031],[1409961600000, 12.822200],[1410048000000, 12.822200],[1410134400000, 12.822200],[1410220800000, 12.822103],[1410307200000, 12.926071],[1410393600000, 12.951794],[1410480000000, 12.976598],[1410566400000, 12.950082],[1410652800000, 12.950082],[1410739200000, 12.950082],[1410825600000, 12.903103],[1410912000000, 12.988170],[1410998400000, 13.082315],[1411084800000, 13.425024],[1411257600000, 13.434133],[1411344000000, 13.434133],[1411516800000, 13.526129],[1411603200000, 12.944226],[1411689600000, 12.950572],[1411776000000, 12.908793],[1411862400000, 12.908793],[1411948800000, 12.908793],[1412035200000, 12.908176]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });