$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1438387200000,32.9067],[1438473600000,32.9067],[1438560000000,32.9067],[1438646400000,33.8401],[1438732800000,33.9053],[1438819200000,33.7069],[1438905600000,33.3411],[1438992000000,32.7251],[1439078400000,32.7251],[1439164800000,32.7251],[1439251200000,32.9574],[1439337600000,33.3327],[1439424000000,33.3689],[1439510400000,33.4493],[1439596800000,34.0175],[1439683200000,34.0175],[1439769600000,34.0175],[1439856000000,34.3995],[1439942400000,34.6899],[1440028800000,34.5627],[1440115200000,34.5153],[1440201600000,34.629],[1440288000000,34.629],[1440374400000,34.629],[1440460800000,null],[1440547200000,35.7071],[1440633600000,33.4011],[1440720000000,32.8968],[1440806400000,32.6072],[1440892800000,32.6072],[1440979200000,32.6072]], 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: [[1438387200000, 32.906710],[1438387200000, 32.906710],[1438473600000, 32.906710],[1438560000000, 32.906710],[1438646400000, 33.840092],[1438732800000, 33.905257],[1438819200000, 33.706924],[1438905600000, 33.341087],[1438992000000, 32.725060],[1439078400000, 32.725060],[1439164800000, 32.725060],[1439251200000, 32.957424],[1439337600000, 33.332743],[1439424000000, 33.368869],[1439510400000, 33.449326],[1439596800000, 34.017477],[1439683200000, 34.017477],[1439769600000, 34.017477],[1439856000000, 34.399547],[1439942400000, 34.689900],[1440028800000, 34.562720],[1440115200000, 34.515283],[1440201600000, 34.629040],[1440288000000, 34.629040],[1440374400000, 34.629040],[1440547200000, 35.707129],[1440633600000, 33.401129],[1440720000000, 32.896849],[1440806400000, 32.607233],[1440892800000, 32.607233],[1440979200000, 32.607233]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });