$(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: [[1364774400000,10.235],[1364860800000,10.235],[1364947200000,10.263],[1365033600000,10.2534],[1365120000000,10.2454],[1365206400000,10.3461],[1365292800000,10.3461],[1365379200000,10.3461],[1365465600000,10.4093],[1365552000000,10.4229],[1365638400000,10.4596],[1365724800000,10.486],[1365811200000,10.4325],[1365897600000,10.4325],[1365984000000,10.4325],[1366070400000,10.4556],[1366156800000,10.494],[1366243200000,10.494],[1366329600000,10.4269],[1366416000000,10.4828],[1366502400000,10.4828],[1366588800000,10.4828],[1366675200000,10.4205],[1366761600000,10.3829],[1366848000000,10.3957],[1366934400000,10.4548],[1367020800000,10.3901],[1367107200000,10.3901],[1367193600000,10.3901],[1367280000000,10.4812]], 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: [[1364774400000, 10.235037],[1364774400000, 10.235037],[1364860800000, 10.235037],[1364947200000, 10.263012],[1365033600000, 10.253420],[1365120000000, 10.245427],[1365206400000, 10.346139],[1365292800000, 10.346139],[1365379200000, 10.346139],[1365465600000, 10.409284],[1365552000000, 10.422872],[1365638400000, 10.459640],[1365724800000, 10.486017],[1365811200000, 10.432464],[1365897600000, 10.432464],[1365984000000, 10.432464],[1366070400000, 10.455643],[1366156800000, 10.494010],[1366243200000, 10.494010],[1366329600000, 10.426869],[1366416000000, 10.482820],[1366502400000, 10.482820],[1366588800000, 10.482820],[1366675200000, 10.420474],[1366761600000, 10.382907],[1366848000000, 10.395696],[1366934400000, 10.454844],[1367020800000, 10.390101],[1367107200000, 10.390101],[1367193600000, 10.390101],[1367280000000, 10.481221]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });