$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1412121600000,0.052684],[1412208000000,0.052489],[1412294400000,0.052597],[1412380800000,0.052776],[1412467200000,0.052776],[1412553600000,0.052776],[1412640000000,0.05284],[1412726400000,0.05285],[1412812800000,0.053021],[1412899200000,0.053102],[1412985600000,0.053966],[1413072000000,0.053966],[1413158400000,0.053966],[1413244800000,0.05335],[1413331200000,0.05375],[1413417600000,0.053413],[1413504000000,0.053528],[1413590400000,0.053453],[1413676800000,0.053453],[1413763200000,0.053453],[1413849600000,0.054025],[1413936000000,0.053993],[1414022400000,0.053943],[1414108800000,0.053689],[1414195200000,0.053373],[1414281600000,0.053373],[1414368000000,0.053373],[1414454400000,0.053115],[1414540800000,0.053179],[1414627200000,0.053391],[1414713600000,0.053383]], 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: [[1412121600000, 0.052684],[1412121600000, 0.052684],[1412208000000, 0.052489],[1412294400000, 0.052597],[1412380800000, 0.052776],[1412467200000, 0.052776],[1412553600000, 0.052776],[1412640000000, 0.052840],[1412726400000, 0.052850],[1412812800000, 0.053021],[1412899200000, 0.053102],[1412985600000, 0.053966],[1413072000000, 0.053966],[1413158400000, 0.053966],[1413244800000, 0.053350],[1413331200000, 0.053750],[1413417600000, 0.053413],[1413504000000, 0.053528],[1413590400000, 0.053453],[1413676800000, 0.053453],[1413763200000, 0.053453],[1413849600000, 0.054025],[1413936000000, 0.053993],[1414022400000, 0.053943],[1414108800000, 0.053689],[1414195200000, 0.053373],[1414281600000, 0.053373],[1414368000000, 0.053373],[1414454400000, 0.053115],[1414540800000, 0.053179],[1414627200000, 0.053391],[1414713600000, 0.053383]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });