$(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: [[1338508800000,9.9131],[1338595200000,9.84836],[1338681600000,9.84836],[1338768000000,9.84836],[1338854400000,9.84836],[1338940800000,9.93388],[1339027200000,9.97864],[1339113600000,10.0666],[1339200000000,9.96505],[1339286400000,9.96505],[1339372800000,9.96505],[1339459200000,10.0258],[1339545600000,9.98423],[1339632000000,9.93388],[1339718400000,10.0314],[1339804800000,10.0674],[1339891200000,10.0674],[1339977600000,10.0674],[1340064000000,10.0849],[1340150400000,10.0857],[1340236800000,10.1537],[1340323200000,10.1265],[1340409600000,10.0218],[1340496000000,10.0218],[1340582400000,10.0218],[1340668800000,9.98103],[1340755200000,9.97064],[1340841600000,9.97304],[1340928000000,9.97304],[1341014400000,9.97304]], 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: [[1338508800000, 9.913098],[1338508800000, 9.913098],[1338595200000, 9.848359],[1338681600000, 9.848359],[1338768000000, 9.848359],[1338854400000, 9.848359],[1338940800000, 9.933878],[1339027200000, 9.978636],[1339113600000, 10.066554],[1339200000000, 9.965049],[1339286400000, 9.965049],[1339372800000, 9.965049],[1339459200000, 10.025792],[1339545600000, 9.984231],[1339632000000, 9.933878],[1339718400000, 10.031387],[1339804800000, 10.067353],[1339891200000, 10.067353],[1339977600000, 10.067353],[1340064000000, 10.084937],[1340150400000, 10.085736],[1340236800000, 10.153672],[1340323200000, 10.126498],[1340409600000, 10.021796],[1340496000000, 10.021796],[1340582400000, 10.021796],[1340668800000, 9.981034],[1340755200000, 9.970644],[1340841600000, 9.973042],[1340928000000, 9.973042],[1341014400000, 9.973042]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });