$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1238544000000,4.61334],[1238630400000,4.6825],[1238716800000,4.75968],[1238803200000,4.81991],[1238889600000,4.81991],[1238976000000,4.81991],[1239062400000,4.89492],[1239148800000,4.77378],[1239235200000,4.81855],[1239321600000,4.89005],[1239408000000,4.89005],[1239494400000,4.89005],[1239580800000,4.89005],[1239667200000,4.89005],[1239753600000,4.90148],[1239840000000,4.79312],[1239926400000,4.80104],[1240012800000,4.77611],[1240099200000,4.77611],[1240185600000,4.77611],[1240272000000,4.77611],[1240358400000,4.62909],[1240444800000,4.6773],[1240531200000,4.70656],[1240617600000,4.76952],[1240704000000,4.76952],[1240790400000,4.76952],[1240876800000,4.7325],[1240963200000,4.6984],[1241049600000,4.82241]], 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: [[1238544000000, 4.613344],[1238544000000, 4.613344],[1238630400000, 4.682499],[1238716800000, 4.759677],[1238803200000, 4.819905],[1238889600000, 4.819905],[1238976000000, 4.819905],[1239062400000, 4.894922],[1239148800000, 4.773784],[1239235200000, 4.818555],[1239321600000, 4.890053],[1239408000000, 4.890053],[1239494400000, 4.890053],[1239580800000, 4.890053],[1239667200000, 4.890053],[1239753600000, 4.901477],[1239840000000, 4.793124],[1239926400000, 4.801040],[1240012800000, 4.776107],[1240099200000, 4.776107],[1240185600000, 4.776107],[1240272000000, 4.776107],[1240358400000, 4.629092],[1240444800000, 4.677297],[1240531200000, 4.706557],[1240617600000, 4.769516],[1240704000000, 4.769516],[1240790400000, 4.769516],[1240876800000, 4.732498],[1240963200000, 4.698403],[1241049600000, 4.822406]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });