$(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: [[1298937600000,12.8716],[1299024000000,12.9189],[1299110400000,12.9278],[1299196800000,12.9129],[1299283200000,12.9072],[1299369600000,12.9072],[1299456000000,12.9072],[1299542400000,12.9072],[1299628800000,12.9072],[1299715200000,12.8661],[1299801600000,12.8001],[1299888000000,12.6904],[1299974400000,12.6904],[1300060800000,12.6904],[1300147200000,12.7819],[1300233600000,12.7102],[1300320000000,12.7782],[1300406400000,12.8245],[1300492800000,12.852],[1300579200000,12.852],[1300665600000,12.852],[1300752000000,12.9413],[1300838400000,13.0151],[1300924800000,12.92],[1301011200000,12.862],[1301097600000,12.7997],[1301184000000,12.7997],[1301270400000,12.7997],[1301356800000,12.7179],[1301443200000,12.7024],[1301529600000,12.761]], 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: [[1298937600000, 12.871557],[1298937600000, 12.871557],[1299024000000, 12.918904],[1299110400000, 12.927817],[1299196800000, 12.912892],[1299283200000, 12.907195],[1299369600000, 12.907195],[1299456000000, 12.907195],[1299542400000, 12.907195],[1299628800000, 12.907195],[1299715200000, 12.866132],[1299801600000, 12.800102],[1299888000000, 12.690447],[1299974400000, 12.690447],[1300060800000, 12.690447],[1300147200000, 12.781935],[1300233600000, 12.710247],[1300320000000, 12.778202],[1300406400000, 12.824529],[1300492800000, 12.852026],[1300579200000, 12.852026],[1300665600000, 12.852026],[1300752000000, 12.941339],[1300838400000, 13.015069],[1300924800000, 12.920002],[1301011200000, 12.861959],[1301097600000, 12.799658],[1301184000000, 12.799658],[1301270400000, 12.799658],[1301356800000, 12.717873],[1301443200000, 12.702406],[1301529600000, 12.760997]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });