$(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: 'Курс EEK, грн'}, 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: 'Курс EEK', data: [[1283299200000,0.639138],[1283385600000,0.645137],[1283472000000,0.647003],[1283558400000,0.648664],[1283644800000,0.648664],[1283731200000,0.648664],[1283817600000,0.650686],[1283904000000,0.644115],[1283990400000,0.64174],[1284076800000,0.642649],[1284163200000,0.643155],[1284249600000,0.643155],[1284336000000,0.643155],[1284422400000,0.646996],[1284508800000,0.650294],[1284595200000,0.657411],[1284681600000,0.661916],[1284768000000,0.661005],[1284854400000,0.661005],[1284940800000,0.661005],[1285027200000,0.661713],[1285113600000,0.664041],[1285200000000,0.676391],[1285286400000,0.67406],[1285372800000,0.67798],[1285459200000,0.67798],[1285545600000,0.67798],[1285632000000,0.681619],[1285718400000,0.680759],[1285804800000,0.688397]], 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: [[1283299200000, 0.639138],[1283299200000, 0.639138],[1283385600000, 0.645137],[1283472000000, 0.647003],[1283558400000, 0.648664],[1283644800000, 0.648664],[1283731200000, 0.648664],[1283817600000, 0.650686],[1283904000000, 0.644115],[1283990400000, 0.641740],[1284076800000, 0.642649],[1284163200000, 0.643155],[1284249600000, 0.643155],[1284336000000, 0.643155],[1284422400000, 0.646996],[1284508800000, 0.650294],[1284595200000, 0.657411],[1284681600000, 0.661916],[1284768000000, 0.661005],[1284854400000, 0.661005],[1284940800000, 0.661005],[1285027200000, 0.661713],[1285113600000, 0.664041],[1285200000000, 0.676391],[1285286400000, 0.674060],[1285372800000, 0.677980],[1285459200000, 0.677980],[1285545600000, 0.677980],[1285632000000, 0.681619],[1285718400000, 0.680759],[1285804800000, 0.688397]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });