$(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: [[1270080000000,5.20774],[1270166400000,5.21136],[1270252800000,5.21136],[1270339200000,5.21136],[1270425600000,5.21136],[1270512000000,5.21136],[1270598400000,5.24444],[1270684800000,5.27515],[1270771200000,5.2673],[1270857600000,5.31265],[1270944000000,5.31265],[1271030400000,5.31265],[1271116800000,5.33129],[1271203200000,5.32537],[1271289600000,5.35247],[1271376000000,5.35664],[1271462400000,5.37238],[1271548800000,5.37238],[1271635200000,5.37238],[1271721600000,5.2984],[1271808000000,5.32719],[1271894400000,5.33923],[1271980800000,5.33412],[1272067200000,5.33828],[1272153600000,5.33828],[1272240000000,5.33828],[1272326400000,5.36857],[1272412800000,5.32561],[1272499200000,5.28593],[1272585600000,5.34061]], 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: [[1270080000000, 5.207736],[1270080000000, 5.207736],[1270166400000, 5.211362],[1270252800000, 5.211362],[1270339200000, 5.211362],[1270425600000, 5.211362],[1270512000000, 5.211362],[1270598400000, 5.244445],[1270684800000, 5.275155],[1270771200000, 5.267297],[1270857600000, 5.312648],[1270944000000, 5.312648],[1271030400000, 5.312648],[1271116800000, 5.331295],[1271203200000, 5.325366],[1271289600000, 5.352474],[1271376000000, 5.356638],[1271462400000, 5.372381],[1271548800000, 5.372381],[1271635200000, 5.372381],[1271721600000, 5.298397],[1271808000000, 5.327185],[1271894400000, 5.339230],[1271980800000, 5.334119],[1272067200000, 5.338275],[1272153600000, 5.338275],[1272240000000, 5.338275],[1272326400000, 5.368566],[1272412800000, 5.325609],[1272499200000, 5.285929],[1272585600000, 5.340605]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });