$(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: [[1420070400000,19.2329],[1420156800000,19.2329],[1420243200000,19.2329],[1420329600000,19.2329],[1420416000000,19.2329],[1420502400000,19.2329],[1420588800000,18.8014],[1420675200000,18.8014],[1420761600000,null],[1420848000000,18.5341],[1420934400000,18.5341],[1421020800000,18.5341],[1421107200000,18.6149],[1421193600000,18.6124],[1421280000000,null],[1421366400000,18.5764],[1421452800000,18.4963],[1421539200000,18.3976],[1421625600000,18.3976],[1421712000000,18.318],[1421798400000,18.3036],[1421884800000,18.2772],[1421971200000,null],[1422057600000,18.3472],[1422144000000,18.3472],[1422230400000,18.3472],[1422316800000,17.704],[1422403200000,17.8775],[1422489600000,17.942],[1422576000000,18.0986],[1422662400000,18.2826]], 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: [[1420070400000, 19.232908],[1420070400000, 19.232908],[1420156800000, 19.232908],[1420243200000, 19.232908],[1420329600000, 19.232908],[1420416000000, 19.232908],[1420502400000, 19.232908],[1420588800000, 18.801353],[1420675200000, 18.801353],[1420848000000, 18.534114],[1420934400000, 18.534114],[1421020800000, 18.534114],[1421107200000, 18.614884],[1421193600000, 18.612436],[1421366400000, 18.576352],[1421452800000, 18.496260],[1421539200000, 18.397607],[1421625600000, 18.397607],[1421712000000, 18.318006],[1421798400000, 18.303647],[1421884800000, 18.277168],[1422057600000, 18.347204],[1422144000000, 18.347204],[1422230400000, 18.347204],[1422316800000, 17.704044],[1422403200000, 17.877500],[1422489600000, 17.941995],[1422576000000, 18.098599],[1422662400000, 18.282570]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });