$(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: [[1022889600000,5.0029],[1022976000000,5.0029],[1023062400000,5.0029],[1023148800000,4.96346],[1023235200000,5.02848],[1023321600000,5.00264],[1023408000000,5.03744],[1023494400000,5.03744],[1023580800000,5.03744],[1023667200000,5.04117],[1023753600000,5.04117],[1023840000000,5.01879],[1023926400000,5.01879],[1024012800000,5.0513],[1024099200000,5.0513],[1024185600000,5.0513],[1024272000000,5.0513],[1024358400000,5.05402],[1024444800000,5.05402],[1024531200000,5.09506],[1024617600000,5.13483],[1024704000000,5.13483],[1024790400000,5.13483],[1024876800000,5.13483],[1024963200000,5.17533],[1025049600000,5.17533],[1025136000000,5.23501],[1025222400000,5.23501],[1025308800000,5.23501],[1025395200000,5.23501]], 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: [[1022889600000, 5.002900],[1022889600000, 5.002900],[1022976000000, 5.002900],[1023062400000, 5.002900],[1023148800000, 4.963460],[1023235200000, 5.028480],[1023321600000, 5.002640],[1023408000000, 5.037440],[1023494400000, 5.037440],[1023580800000, 5.037440],[1023667200000, 5.041170],[1023753600000, 5.041170],[1023840000000, 5.018790],[1023926400000, 5.018790],[1024012800000, 5.051300],[1024099200000, 5.051300],[1024185600000, 5.051300],[1024272000000, 5.051300],[1024358400000, 5.054020],[1024444800000, 5.054020],[1024531200000, 5.095060],[1024617600000, 5.134830],[1024704000000, 5.134830],[1024790400000, 5.134830],[1024876800000, 5.134830],[1024963200000, 5.175330],[1025049600000, 5.175330],[1025136000000, 5.235010],[1025222400000, 5.235010],[1025308800000, 5.235010],[1025395200000, 5.235010]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });