$(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: [[1367366400000,12.3753],[1367452800000,12.3753],[1367539200000,12.3753],[1367625600000,12.3753],[1367712000000,12.3753],[1367798400000,12.3753],[1367884800000,12.3753],[1367971200000,12.4099],[1368057600000,12.3967],[1368144000000,12.3967],[1368230400000,12.3967],[1368316800000,12.3967],[1368403200000,12.3967],[1368489600000,12.2845],[1368576000000,12.2296],[1368662400000,12.1482],[1368748800000,12.1857],[1368835200000,12.1766],[1368921600000,12.1766],[1369008000000,12.1766],[1369094400000,12.1492],[1369180800000,12.1114],[1369267200000,12.0712],[1369353600000,12.0463],[1369440000000,12.0685],[1369526400000,12.0685],[1369612800000,12.0685],[1369699200000,12.0876],[1369785600000,12.0909],[1369872000000,12.0807],[1369958400000,12.0908]], 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: [[1367366400000, 12.375281],[1367366400000, 12.375281],[1367452800000, 12.375281],[1367539200000, 12.375281],[1367625600000, 12.375281],[1367712000000, 12.375281],[1367798400000, 12.375281],[1367884800000, 12.375281],[1367971200000, 12.409885],[1368057600000, 12.396748],[1368144000000, 12.396748],[1368230400000, 12.396748],[1368316800000, 12.396748],[1368403200000, 12.396748],[1368489600000, 12.284467],[1368576000000, 12.229577],[1368662400000, 12.148151],[1368748800000, 12.185662],[1368835200000, 12.176610],[1368921600000, 12.176610],[1369008000000, 12.176610],[1369094400000, 12.149247],[1369180800000, 12.111405],[1369267200000, 12.071233],[1369353600000, 12.046282],[1369440000000, 12.068549],[1369526400000, 12.068549],[1369612800000, 12.068549],[1369699200000, 12.087591],[1369785600000, 12.090896],[1369872000000, 12.080674],[1369958400000, 12.090849]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });