$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1393632000000,15.0089],[1393718400000,15.0089],[1393804800000,15.0089],[1393891200000,15.4604],[1393977600000,15.0352],[1394064000000,14.5917],[1394150400000,14.5039],[1394236800000,14.3319],[1394323200000,14.3319],[1394409600000,14.3319],[1394496000000,14.3319],[1394582400000,14.3864],[1394668800000,14.3744],[1394755200000,14.7231],[1394841600000,14.8892],[1394928000000,14.8892],[1395014400000,14.8892],[1395100800000,15.1301],[1395187200000,15.4652],[1395273600000,15.4033],[1395360000000,15.6095],[1395446400000,15.7539],[1395532800000,15.7539],[1395619200000,15.7539],[1395705600000,16.0141],[1395792000000,16.3446],[1395878400000,16.4902],[1395964800000,16.7651],[1396051200000,16.9112],[1396137600000,16.9112],[1396224000000,16.9112]], 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: [[1393632000000, 15.008882],[1393632000000, 15.008882],[1393718400000, 15.008882],[1393804800000, 15.008882],[1393891200000, 15.460357],[1393977600000, 15.035238],[1394064000000, 14.591679],[1394150400000, 14.503884],[1394236800000, 14.331935],[1394323200000, 14.331935],[1394409600000, 14.331935],[1394496000000, 14.331935],[1394582400000, 14.386380],[1394668800000, 14.374448],[1394755200000, 14.723115],[1394841600000, 14.889238],[1394928000000, 14.889238],[1395014400000, 14.889238],[1395100800000, 15.130106],[1395187200000, 15.465192],[1395273600000, 15.403276],[1395360000000, 15.609506],[1395446400000, 15.753865],[1395532800000, 15.753865],[1395619200000, 15.753865],[1395705600000, 16.014112],[1395792000000, 16.344641],[1395878400000, 16.490157],[1395964800000, 16.765092],[1396051200000, 16.911171],[1396137600000, 16.911171],[1396224000000, 16.911171]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });