$(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: 'Курс UZS, грн'}, 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: 'Курс UZS', data: [[1459468800000,0.009114],[1459555200000,0.009076],[1459641600000,0.009076],[1459728000000,0.009076],[1459814400000,0.009018],[1459900800000,0.009046],[1459987200000,0.009005],[1460073600000,0.00895],[1460160000000,0.008891],[1460246400000,null],[1460332800000,null],[1460419200000,0.008853],[1460505600000,0.008847],[1460592000000,0.008823],[1460678400000,0.00888],[1460764800000,0.00882],[1460851200000,0.00882],[1460937600000,0.00882],[1461024000000,0.008806],[1461110400000,0.008792],[1461196800000,0.008781],[1461283200000,0.008768],[1461369600000,0.008758],[1461456000000,0.008758],[1461542400000,0.008758],[1461628800000,0.00874],[1461715200000,0.008727],[1461801600000,0.008697],[1461888000000,0.008687],[1461974400000,0.008692]], 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: [[1459468800000, 0.009114],[1459468800000, 0.009114],[1459555200000, 0.009076],[1459641600000, 0.009076],[1459728000000, 0.009076],[1459814400000, 0.009018],[1459900800000, 0.009046],[1459987200000, 0.009005],[1460073600000, 0.008950],[1460160000000, 0.008891],[1460419200000, 0.008853],[1460505600000, 0.008847],[1460592000000, 0.008823],[1460678400000, 0.008880],[1460764800000, 0.008820],[1460851200000, 0.008820],[1460937600000, 0.008820],[1461024000000, 0.008806],[1461110400000, 0.008792],[1461196800000, 0.008781],[1461283200000, 0.008768],[1461369600000, 0.008758],[1461456000000, 0.008758],[1461542400000, 0.008758],[1461628800000, 0.008740],[1461715200000, 0.008727],[1461801600000, 0.008697],[1461888000000, 0.008687],[1461974400000, 0.008692]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });