$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1133395200000,7.19189],[1133481600000,7.18678],[1133568000000,7.16636],[1133654400000,7.16636],[1133740800000,7.16636],[1133827200000,7.17862],[1133913600000,7.1833],[1134000000000,7.17029],[1134086400000,7.19517],[1134172800000,7.20355],[1134259200000,7.20355],[1134345600000,7.20355],[1134432000000,7.22563],[1134518400000,7.23634],[1134604800000,7.27382],[1134691200000,7.29327],[1134777600000,7.28402],[1134864000000,7.28402],[1134950400000,7.28402],[1135036800000,7.28952],[1135123200000,7.27702],[1135209600000,7.24286],[1135296000000,7.22574],[1135382400000,7.23327],[1135468800000,7.23327],[1135555200000,7.23327],[1135641600000,7.23327],[1135728000000,7.23327],[1135814400000,7.24533],[1135900800000,7.21694]], 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: [[1133395200000, 7.191888],[1133395200000, 7.191888],[1133481600000, 7.186781],[1133568000000, 7.166363],[1133654400000, 7.166363],[1133740800000, 7.166363],[1133827200000, 7.178618],[1133913600000, 7.183295],[1134000000000, 7.170291],[1134086400000, 7.195167],[1134172800000, 7.203552],[1134259200000, 7.203552],[1134345600000, 7.203552],[1134432000000, 7.225630],[1134518400000, 7.236336],[1134604800000, 7.273817],[1134691200000, 7.293272],[1134777600000, 7.284025],[1134864000000, 7.284025],[1134950400000, 7.284025],[1135036800000, 7.289524],[1135123200000, 7.277024],[1135209600000, 7.242864],[1135296000000, 7.225744],[1135382400000, 7.233268],[1135468800000, 7.233268],[1135555200000, 7.233268],[1135641600000, 7.233268],[1135728000000, 7.233268],[1135814400000, 7.245327],[1135900800000, 7.216935]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });