$(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: [[1267401600000,10.8424],[1267488000000,10.8065],[1267574400000,10.8181],[1267660800000,10.891],[1267747200000,10.9128],[1267833600000,10.8436],[1267920000000,10.8436],[1268006400000,10.8436],[1268092800000,10.8436],[1268179200000,10.8239],[1268265600000,10.864],[1268352000000,10.8988],[1268438400000,10.9817],[1268524800000,10.9817],[1268611200000,10.9817],[1268697600000,10.9321],[1268784000000,10.9464],[1268870400000,10.9718],[1268956800000,10.8952],[1269043200000,10.7845],[1269129600000,10.7845],[1269216000000,10.7845],[1269302400000,10.7154],[1269388800000,10.7477],[1269475200000,10.5837],[1269561600000,10.5926],[1269648000000,10.5889],[1269734400000,10.5889],[1269820800000,10.5889],[1269907200000,10.6758],[1269993600000,10.6845]], 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: [[1267401600000, 10.842430],[1267401600000, 10.842430],[1267488000000, 10.806475],[1267574400000, 10.818078],[1267660800000, 10.890974],[1267747200000, 10.912805],[1267833600000, 10.843597],[1267920000000, 10.843597],[1268006400000, 10.843597],[1268092800000, 10.843597],[1268179200000, 10.823909],[1268265600000, 10.864046],[1268352000000, 10.898832],[1268438400000, 10.981717],[1268524800000, 10.981717],[1268611200000, 10.981717],[1268697600000, 10.932067],[1268784000000, 10.946425],[1268870400000, 10.971786],[1268956800000, 10.895216],[1269043200000, 10.784479],[1269129600000, 10.784479],[1269216000000, 10.784479],[1269302400000, 10.715372],[1269388800000, 10.747740],[1269475200000, 10.583703],[1269561600000, 10.592644],[1269648000000, 10.588929],[1269734400000, 10.588929],[1269820800000, 10.588929],[1269907200000, 10.675768],[1269993600000, 10.684485]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });