$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1318032000000,12.385],[1318118400000,12.385],[1318204800000,12.385],[1318291200000,12.4724],[1318377600000,12.4666],[1318464000000,12.5397],[1318550400000,12.5001],[1318636800000,12.5881],[1318723200000,12.5881],[1318809600000,12.5881],[1318896000000,12.5713],[1318982400000,12.5346],[1319068800000,12.6051],[1319155200000,12.5852],[1319241600000,12.6821],[1319328000000,12.6821],[1319414400000,12.6821],[1319500800000,12.7156],[1319587200000,12.7586],[1319673600000,12.7405],[1319760000000,12.7789]], 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.384974],[1318032000000, 12.384974],[1318118400000, 12.384974],[1318204800000, 12.384974],[1318291200000, 12.472426],[1318377600000, 12.466620],[1318464000000, 12.539665],[1318550400000, 12.500135],[1318636800000, 12.588076],[1318723200000, 12.588076],[1318809600000, 12.588076],[1318896000000, 12.571309],[1318982400000, 12.534552],[1319068800000, 12.605061],[1319155200000, 12.585199],[1319241600000, 12.682075],[1319328000000, 12.682075],[1319414400000, 12.682075],[1319500800000, 12.715602],[1319587200000, 12.758620],[1319673600000, 12.740514],[1319760000000, 12.778857]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });