$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1164931200000,5.78863],[1165017600000,5.78929],[1165104000000,5.78929],[1165190400000,5.78929],[1165276800000,5.78929],[1165363200000,5.78929],[1165449600000,5.78996],[1165536000000,5.78929],[1165622400000,5.78996],[1165708800000,5.78996],[1165795200000,5.78996],[1165881600000,5.79062],[1165968000000,5.79062],[1166054400000,5.79062],[1166140800000,5.79128],[1166227200000,5.79128],[1166313600000,5.79128],[1166400000000,5.79128],[1166486400000,5.79261],[1166572800000,5.79261],[1166659200000,5.79328],[1166745600000,5.79328],[1166832000000,5.79328],[1166918400000,5.79328],[1167004800000,5.79328],[1167091200000,5.79394],[1167177600000,5.79394],[1167264000000,5.79461],[1167350400000,5.79461],[1167436800000,5.79461]], 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: [[1164931200000, 5.788629],[1164931200000, 5.788629],[1165017600000, 5.789293],[1165104000000, 5.789293],[1165190400000, 5.789293],[1165276800000, 5.789293],[1165363200000, 5.789293],[1165449600000, 5.789956],[1165536000000, 5.789293],[1165622400000, 5.789956],[1165708800000, 5.789956],[1165795200000, 5.789956],[1165881600000, 5.790620],[1165968000000, 5.790620],[1166054400000, 5.790620],[1166140800000, 5.791284],[1166227200000, 5.791284],[1166313600000, 5.791284],[1166400000000, 5.791284],[1166486400000, 5.792613],[1166572800000, 5.792613],[1166659200000, 5.793278],[1166745600000, 5.793278],[1166832000000, 5.793278],[1166918400000, 5.793278],[1167004800000, 5.793278],[1167091200000, 5.793942],[1167177600000, 5.793942],[1167264000000, 5.794607],[1167350400000, 5.794607],[1167436800000, 5.794607]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });