$(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: [[1259625600000,13.1645],[1259712000000,13.2362],[1259798400000,13.3337],[1259884800000,13.2881],[1259971200000,13.2961],[1260057600000,13.2961],[1260144000000,13.2961],[1260230400000,13.0445],[1260316800000,13.0058],[1260403200000,13.0383],[1260489600000,13.0091],[1260576000000,13.0147],[1260662400000,13.0147],[1260748800000,13.0147],[1260835200000,12.9793],[1260921600000,12.9395],[1261008000000,13.047],[1261094400000,12.845],[1261180800000,12.8823],[1261267200000,12.8823],[1261353600000,12.8823],[1261440000000,12.8407],[1261526400000,12.7417],[1261612800000,12.7139],[1261699200000,12.7325],[1261785600000,12.7317],[1261872000000,12.7317],[1261958400000,12.7317],[1262044800000,12.7282],[1262131200000,12.7406],[1262217600000,12.6647]], 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: [[1259625600000, 13.164469],[1259625600000, 13.164469],[1259712000000, 13.236160],[1259798400000, 13.333700],[1259884800000, 13.288104],[1259971200000, 13.296078],[1260057600000, 13.296078],[1260144000000, 13.296078],[1260230400000, 13.044518],[1260316800000, 13.005844],[1260403200000, 13.038319],[1260489600000, 13.009084],[1260576000000, 13.014658],[1260662400000, 13.014658],[1260748800000, 13.014658],[1260835200000, 12.979330],[1260921600000, 12.939543],[1261008000000, 13.046952],[1261094400000, 12.844959],[1261180800000, 12.882287],[1261267200000, 12.882287],[1261353600000, 12.882287],[1261440000000, 12.840655],[1261526400000, 12.741655],[1261612800000, 12.713889],[1261699200000, 12.732512],[1261785600000, 12.731713],[1261872000000, 12.731713],[1261958400000, 12.731713],[1262044800000, 12.728201],[1262131200000, 12.740596],[1262217600000, 12.664705]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });