$(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: [[1480550400000,19.0976],[1480636800000,19.1332],[1480723200000,19.4684],[1480809600000,19.4684],[1480896000000,19.4684],[1480982400000,19.636],[1481068800000,19.6692],[1481155200000,19.6037],[1481241600000,19.5024],[1481328000000,19.6392],[1481414400000,19.6392],[1481500800000,19.6392],[1481587200000,19.9245],[1481673600000,19.899],[1481760000000,20.057],[1481846400000,19.7097],[1481932800000,19.6904],[1482019200000,19.6904],[1482105600000,19.6904],[1482192000000,19.7246],[1482278400000,19.7424],[1482364800000,19.7689],[1482451200000,19.5174],[1482537600000,19.4363],[1482624000000,19.4363],[1482710400000,19.4363],[1482796800000,19.5094],[1482883200000,19.5094],[1482969600000,19.8113],[1483056000000,20.081],[1483142400000,20.081]], 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: [[1480550400000, 19.097551],[1480550400000, 19.097551],[1480636800000, 19.133234],[1480723200000, 19.468419],[1480809600000, 19.468419],[1480896000000, 19.468419],[1480982400000, 19.635974],[1481068800000, 19.669240],[1481155200000, 19.603687],[1481241600000, 19.502428],[1481328000000, 19.639220],[1481414400000, 19.639220],[1481500800000, 19.639220],[1481587200000, 19.924507],[1481673600000, 19.899043],[1481760000000, 20.057026],[1481846400000, 19.709695],[1481932800000, 19.690403],[1482019200000, 19.690403],[1482105600000, 19.690403],[1482192000000, 19.724634],[1482278400000, 19.742377],[1482364800000, 19.768908],[1482451200000, 19.517355],[1482537600000, 19.436328],[1482624000000, 19.436328],[1482710400000, 19.436328],[1482796800000, 19.509444],[1482883200000, 19.509444],[1482969600000, 19.811299],[1483056000000, 20.080969],[1483142400000, 20.080969]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });