$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1243814400000,9.48046],[1243900800000,9.47169],[1243987200000,9.47293],[1244073600000,9.47224],[1244160000000,9.4725],[1244246400000,9.47225],[1244332800000,9.47225],[1244419200000,9.47225],[1244505600000,9.47225],[1244592000000,9.46648],[1244678400000,9.46871],[1244764800000,9.46673],[1244851200000,9.46927],[1244937600000,9.46927],[1245024000000,9.46927],[1245110400000,9.46927],[1245196800000,9.46809],[1245283200000,9.47755],[1245369600000,9.47556],[1245456000000,9.47363],[1245542400000,9.47363],[1245628800000,9.47363],[1245715200000,9.46555],[1245801600000,9.46537],[1245888000000,9.48197],[1245974400000,9.487],[1246060800000,9.48924],[1246147200000,9.48924],[1246233600000,9.48924],[1246320000000,9.48924]], 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: [[1243814400000, 9.480463],[1243814400000, 9.480463],[1243900800000, 9.471686],[1243987200000, 9.472931],[1244073600000, 9.472243],[1244160000000, 9.472499],[1244246400000, 9.472250],[1244332800000, 9.472250],[1244419200000, 9.472250],[1244505600000, 9.472250],[1244592000000, 9.466476],[1244678400000, 9.468707],[1244764800000, 9.466725],[1244851200000, 9.469271],[1244937600000, 9.469271],[1245024000000, 9.469271],[1245110400000, 9.469271],[1245196800000, 9.468093],[1245283200000, 9.477547],[1245369600000, 9.475557],[1245456000000, 9.473632],[1245542400000, 9.473632],[1245628800000, 9.473632],[1245715200000, 9.465547],[1245801600000, 9.465365],[1245888000000, 9.481965],[1245974400000, 9.487004],[1246060800000, 9.489243],[1246147200000, 9.489243],[1246233600000, 9.489243],[1246320000000, 9.489243]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });