$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1272672000000,9.86668],[1272758400000,9.86668],[1272844800000,9.86668],[1272931200000,9.86668],[1273017600000,9.86668],[1273104000000,9.86422],[1273190400000,9.86422],[1273276800000,9.86422],[1273363200000,9.86422],[1273449600000,9.86422],[1273536000000,9.86422],[1273622400000,9.86422],[1273708800000,9.86299],[1273795200000,9.86299],[1273881600000,9.86299],[1273968000000,null],[1274054400000,9.86299],[1274140800000,9.86299],[1274227200000,9.86299],[1274313600000,9.86152],[1274400000000,9.86274],[1274486400000,9.86372],[1274572800000,9.86372],[1274659200000,9.86372],[1274745600000,9.86372],[1274832000000,9.86249],[1274918400000,9.86237],[1275004800000,9.862],[1275091200000,9.862],[1275177600000,9.862],[1275264000000,9.862]], 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: [[1272672000000, 9.866675],[1272672000000, 9.866675],[1272758400000, 9.866675],[1272844800000, 9.866675],[1272931200000, 9.866675],[1273017600000, 9.866675],[1273104000000, 9.864219],[1273190400000, 9.864219],[1273276800000, 9.864219],[1273363200000, 9.864219],[1273449600000, 9.864219],[1273536000000, 9.864219],[1273622400000, 9.864219],[1273708800000, 9.862992],[1273795200000, 9.862992],[1273881600000, 9.862992],[1274054400000, 9.862992],[1274140800000, 9.862992],[1274227200000, 9.862992],[1274313600000, 9.861515],[1274400000000, 9.862743],[1274486400000, 9.863721],[1274572800000, 9.863721],[1274659200000, 9.863721],[1274745600000, 9.863721],[1274832000000, 9.862494],[1274918400000, 9.862369],[1275004800000, 9.861996],[1275091200000, 9.861996],[1275177600000, 9.861996],[1275264000000, 9.861996]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });