$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1280620800000,7.64279],[1280707200000,7.64279],[1280793600000,7.71573],[1280880000000,7.70397],[1280966400000,7.71468],[1281052800000,7.78811],[1281139200000,7.71971],[1281225600000,null],[1281312000000,7.71971],[1281398400000,7.67008],[1281484800000,7.62187],[1281571200000,7.60488],[1281657600000,7.53195],[1281744000000,7.57627],[1281830400000,7.57627],[1281916800000,7.57627],[1282003200000,7.56856],[1282089600000,7.60553],[1282176000000,7.67779],[1282262400000,7.68436],[1282348800000,7.52616],[1282435200000,null],[1282521600000,null],[1282608000000,7.52587],[1282694400000,7.52587],[1282780800000,7.39955],[1282867200000,7.4598],[1282953600000,7.43438],[1283040000000,7.43438],[1283126400000,7.43438],[1283212800000,7.5117]], 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: [[1280620800000, 7.642790],[1280620800000, 7.642790],[1280707200000, 7.642790],[1280793600000, 7.715729],[1280880000000, 7.703968],[1280966400000, 7.714678],[1281052800000, 7.788114],[1281139200000, 7.719706],[1281312000000, 7.719706],[1281398400000, 7.670078],[1281484800000, 7.621873],[1281571200000, 7.604876],[1281657600000, 7.531953],[1281744000000, 7.576271],[1281830400000, 7.576271],[1281916800000, 7.576271],[1282003200000, 7.568557],[1282089600000, 7.605532],[1282176000000, 7.677788],[1282262400000, 7.684362],[1282348800000, 7.526160],[1282608000000, 7.525873],[1282694400000, 7.525873],[1282780800000, 7.399552],[1282867200000, 7.459797],[1282953600000, 7.434376],[1283040000000, 7.434376],[1283126400000, 7.434376],[1283212800000, 7.511698]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });