$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1162339200000,9.21057],[1162425600000,9.25217],[1162512000000,9.26075],[1162598400000,9.25567],[1162684800000,9.25567],[1162771200000,9.25567],[1162857600000,9.2136],[1162944000000,9.2547],[1163030400000,9.26728],[1163116800000,9.28179],[1163203200000,9.33111],[1163289600000,9.33111],[1163376000000,9.33111],[1163462400000,9.30912],[1163548800000,9.30076],[1163635200000,9.27489],[1163721600000,9.26762],[1163808000000,9.24193],[1163894400000,9.24193],[1163980800000,9.24193],[1164067200000,9.29041],[1164153600000,9.2722],[1164240000000,9.33099],[1164326400000,9.3795],[1164412800000,9.4673],[1164499200000,9.4673],[1164585600000,9.4673],[1164672000000,9.492],[1164758400000,9.51452],[1164844800000,9.52176]], 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: [[1162339200000, 9.210573],[1162339200000, 9.210573],[1162425600000, 9.252169],[1162512000000, 9.260751],[1162598400000, 9.255674],[1162684800000, 9.255674],[1162771200000, 9.255674],[1162857600000, 9.213602],[1162944000000, 9.254705],[1163030400000, 9.267280],[1163116800000, 9.281787],[1163203200000, 9.331112],[1163289600000, 9.331112],[1163376000000, 9.331112],[1163462400000, 9.309124],[1163548800000, 9.300761],[1163635200000, 9.274889],[1163721600000, 9.267622],[1163808000000, 9.241934],[1163894400000, 9.241934],[1163980800000, 9.241934],[1164067200000, 9.290408],[1164153600000, 9.272202],[1164240000000, 9.330987],[1164326400000, 9.379502],[1164412800000, 9.467302],[1164499200000, 9.467302],[1164585600000, 9.467302],[1164672000000, 9.492002],[1164758400000, 9.514524],[1164844800000, 9.521761]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });