$(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: [[1330560000000,10.7365],[1330646400000,10.6319],[1330732800000,10.5577],[1330819200000,10.5577],[1330905600000,10.5577],[1330992000000,10.5601],[1331078400000,10.5066],[1331164800000,10.4796],[1331251200000,10.4796],[1331337600000,10.4796],[1331424000000,10.4796],[1331510400000,10.4796],[1331596800000,10.4768],[1331683200000,10.426],[1331769600000,10.4287],[1331856000000,10.4247],[1331942400000,10.4731],[1332028800000,10.4731],[1332115200000,10.4731],[1332201600000,10.5003],[1332288000000,10.5386],[1332374400000,10.5602],[1332460800000,10.5148],[1332547200000,10.5747],[1332633600000,10.5747],[1332720000000,10.5747],[1332806400000,10.6022],[1332892800000,10.6473],[1332979200000,10.6505],[1333065600000,10.5999],[1333152000000,10.6686]], 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: [[1330560000000, 10.736521],[1330560000000, 10.736521],[1330646400000, 10.631895],[1330732800000, 10.557740],[1330819200000, 10.557740],[1330905600000, 10.557740],[1330992000000, 10.560136],[1331078400000, 10.506616],[1331164800000, 10.479600],[1331251200000, 10.479600],[1331337600000, 10.479600],[1331424000000, 10.479600],[1331510400000, 10.479600],[1331596800000, 10.476833],[1331683200000, 10.426015],[1331769600000, 10.428701],[1331856000000, 10.424709],[1331942400000, 10.473126],[1332028800000, 10.473126],[1332115200000, 10.473126],[1332201600000, 10.500275],[1332288000000, 10.538603],[1332374400000, 10.560163],[1332460800000, 10.514771],[1332547200000, 10.574664],[1332633600000, 10.574664],[1332720000000, 10.574664],[1332806400000, 10.602214],[1332892800000, 10.647334],[1332979200000, 10.650528],[1333065600000, 10.599948],[1333152000000, 10.668639]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });