$(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: [[1301616000000,11.3088],[1301702400000,11.2562],[1301788800000,11.2562],[1301875200000,11.2562],[1301961600000,11.3385],[1302048000000,11.2828],[1302134400000,11.3895],[1302220800000,11.376],[1302307200000,11.47],[1302393600000,11.47],[1302480000000,11.47],[1302566400000,11.4949],[1302652800000,11.5288],[1302739200000,11.5499],[1302825600000,11.4736],[1302912000000,11.5126],[1302998400000,11.5126],[1303084800000,11.5126],[1303171200000,11.376],[1303257600000,11.3921],[1303344000000,11.5618],[1303430400000,11.6167],[1303516800000,11.6167],[1303603200000,11.6167],[1303689600000,11.6167],[1303776000000,11.6167],[1303862400000,11.643],[1303948800000,11.6836],[1304035200000,11.784],[1304121600000,11.8364]], 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: [[1301616000000, 11.308772],[1301616000000, 11.308772],[1301702400000, 11.256236],[1301788800000, 11.256236],[1301875200000, 11.256236],[1301961600000, 11.338458],[1302048000000, 11.282794],[1302134400000, 11.389521],[1302220800000, 11.375981],[1302307200000, 11.469964],[1302393600000, 11.469964],[1302480000000, 11.469964],[1302566400000, 11.494949],[1302652800000, 11.528828],[1302739200000, 11.549906],[1302825600000, 11.473565],[1302912000000, 11.512604],[1302998400000, 11.512604],[1303084800000, 11.512604],[1303171200000, 11.376033],[1303257600000, 11.392115],[1303344000000, 11.561778],[1303430400000, 11.616739],[1303516800000, 11.616739],[1303603200000, 11.616739],[1303689600000, 11.616739],[1303776000000, 11.616739],[1303862400000, 11.643025],[1303948800000, 11.683649],[1304035200000, 11.784013],[1304121600000, 11.836436]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });