$(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: [[1318032000000,12.4255],[1318118400000,12.4255],[1318204800000,12.4255],[1318291200000,12.4255],[1318377600000,12.4913],[1318464000000,12.5607],[1318550400000,12.5444],[1318636800000,12.5661],[1318723200000,12.5661],[1318809600000,12.5661],[1318896000000,12.5618],[1318982400000,12.5379],[1319068800000,12.5905],[1319155200000,12.5766],[1319241600000,12.5619],[1319328000000,12.5619],[1319414400000,12.5619],[1319500800000,12.6075],[1319587200000,12.6526],[1319673600000,12.6469],[1319760000000,12.6908]], 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: [[1318032000000, 12.425523],[1318032000000, 12.425523],[1318118400000, 12.425523],[1318204800000, 12.425523],[1318291200000, 12.425523],[1318377600000, 12.491285],[1318464000000, 12.560667],[1318550400000, 12.544413],[1318636800000, 12.566114],[1318723200000, 12.566114],[1318809600000, 12.566114],[1318896000000, 12.561799],[1318982400000, 12.537905],[1319068800000, 12.590514],[1319155200000, 12.576636],[1319241600000, 12.561879],[1319328000000, 12.561879],[1319414400000, 12.561879],[1319500800000, 12.607550],[1319587200000, 12.652602],[1319673600000, 12.646884],[1319760000000, 12.690771]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });