$(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: 'Курс UZS, грн'}, 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: 'Курс UZS', data: [[1454284800000,0.009025],[1454371200000,0.008971],[1454457600000,0.00912],[1454544000000,0.009059],[1454630400000,0.009127],[1454716800000,0.009134],[1454803200000,0.009134],[1454889600000,0.009134],[1454976000000,0.009107],[1455062400000,0.00913],[1455148800000,0.009129],[1455235200000,0.009179],[1455321600000,0.009202],[1455408000000,0.009202],[1455494400000,0.009202],[1455580800000,0.009421],[1455667200000,0.009492],[1455753600000,0.009388],[1455840000000,0.009296],[1455926400000,0.009434],[1456012800000,0.009434],[1456099200000,0.009434],[1456185600000,0.009473],[1456272000000,0.00955],[1456358400000,0.009545],[1456444800000,0.009555],[1456531200000,0.009487],[1456617600000,0.009487],[1456704000000,0.009487]], 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: [[1454284800000, 0.009025],[1454284800000, 0.009025],[1454371200000, 0.008971],[1454457600000, 0.009120],[1454544000000, 0.009059],[1454630400000, 0.009127],[1454716800000, 0.009134],[1454803200000, 0.009134],[1454889600000, 0.009134],[1454976000000, 0.009107],[1455062400000, 0.009130],[1455148800000, 0.009129],[1455235200000, 0.009179],[1455321600000, 0.009202],[1455408000000, 0.009202],[1455494400000, 0.009202],[1455580800000, 0.009421],[1455667200000, 0.009492],[1455753600000, 0.009388],[1455840000000, 0.009296],[1455926400000, 0.009434],[1456012800000, 0.009434],[1456099200000, 0.009434],[1456185600000, 0.009473],[1456272000000, 0.009550],[1456358400000, 0.009545],[1456444800000, 0.009555],[1456531200000, 0.009487],[1456617600000, 0.009487],[1456704000000, 0.009487]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });