$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1259625600000,12.0001],[1259712000000,12.0429],[1259798400000,12.0577],[1259884800000,12.0809],[1259971200000,12.0303],[1260057600000,12.0303],[1260144000000,12.0303],[1260230400000,11.8059],[1260316800000,11.7963],[1260403200000,11.7945],[1260489600000,11.7641],[1260576000000,11.7802],[1260662400000,11.7802],[1260748800000,11.7802],[1260835200000,11.6892],[1260921600000,11.5938],[1261008000000,11.6046],[1261094400000,11.4314],[1261180800000,11.4266],[1261267200000,11.4266],[1261353600000,11.4266],[1261440000000,11.4513],[1261526400000,11.3789],[1261612800000,11.3751],[1261699200000,11.4694],[1261785600000,11.4687],[1261872000000,11.4687],[1261958400000,11.4687],[1262044800000,11.4736],[1262131200000,11.5009],[1262217600000,11.4489]], 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, 12.000072],[1259625600000, 12.000072],[1259712000000, 12.042920],[1259798400000, 12.057664],[1259884800000, 12.080880],[1259971200000, 12.030291],[1260057600000, 12.030291],[1260144000000, 12.030291],[1260230400000, 11.805941],[1260316800000, 11.796300],[1260403200000, 11.794463],[1260489600000, 11.764115],[1260576000000, 11.780218],[1260662400000, 11.780218],[1260748800000, 11.780218],[1260835200000, 11.689185],[1260921600000, 11.593830],[1261008000000, 11.604611],[1261094400000, 11.431371],[1261180800000, 11.426589],[1261267200000, 11.426589],[1261353600000, 11.426589],[1261440000000, 11.451296],[1261526400000, 11.378935],[1261612800000, 11.375117],[1261699200000, 11.469447],[1261785600000, 11.468727],[1261872000000, 11.468727],[1261958400000, 11.468727],[1262044800000, 11.473583],[1262131200000, 11.500936],[1262217600000, 11.448893]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });