$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1231200000000,10.4581],[1231286400000,10.2656],[1231372800000,10.2656],[1231459200000,10.4851],[1231545600000,10.5367],[1231632000000,10.5367],[1231718400000,10.5367],[1231804800000,10.3134],[1231891200000,10.2117],[1231977600000,10.1432],[1232064000000,10.0755],[1232150400000,10.2179],[1232236800000,null],[1232323200000,10.2179],[1232409600000,10.1501],[1232496000000,9.9561],[1232582400000,9.9407],[1232668800000,9.99768],[1232755200000,9.85215],[1232841600000,9.85215],[1232928000000,9.85215],[1233014400000,10.0023],[1233100800000,10.144],[1233187200000,10.2102],[1233273600000,10.0955],[1233360000000,9.86832]], 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: [[1231200000000, 10.458140],[1231200000000, 10.458140],[1231286400000, 10.265640],[1231372800000, 10.265640],[1231459200000, 10.485090],[1231545600000, 10.536680],[1231632000000, 10.536680],[1231718400000, 10.536680],[1231804800000, 10.313380],[1231891200000, 10.211740],[1231977600000, 10.143210],[1232064000000, 10.075450],[1232150400000, 10.217900],[1232323200000, 10.217900],[1232409600000, 10.150140],[1232496000000, 9.956100],[1232582400000, 9.940700],[1232668800000, 9.997680],[1232755200000, 9.852150],[1232841600000, 9.852150],[1232928000000, 9.852150],[1233014400000, 10.002300],[1233100800000, 10.143980],[1233187200000, 10.210200],[1233273600000, 10.095470],[1233360000000, 9.868320]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });