$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1272672000000,5.79312],[1272758400000,5.79312],[1272844800000,5.79312],[1272931200000,5.79312],[1273017600000,5.79312],[1273104000000,5.72131],[1273190400000,5.69421],[1273276800000,5.68282],[1273363200000,5.68282],[1273449600000,5.68282],[1273536000000,5.68282],[1273622400000,5.71608],[1273708800000,5.74396],[1273795200000,5.74045],[1273881600000,5.73209],[1273968000000,null],[1274054400000,5.73209],[1274140800000,5.70312],[1274227200000,5.71795],[1274313600000,5.67476],[1274400000000,5.62169],[1274486400000,5.62756],[1274572800000,5.62756],[1274659200000,5.62756],[1274745600000,5.62756],[1274832000000,5.58509],[1274918400000,5.63601],[1275004800000,5.6404],[1275091200000,5.66916],[1275177600000,5.66916],[1275264000000,5.66916]], 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, 5.793125],[1272672000000, 5.793125],[1272758400000, 5.793125],[1272844800000, 5.793125],[1272931200000, 5.793125],[1273017600000, 5.793125],[1273104000000, 5.721310],[1273190400000, 5.694210],[1273276800000, 5.682822],[1273363200000, 5.682822],[1273449600000, 5.682822],[1273536000000, 5.682822],[1273622400000, 5.716083],[1273708800000, 5.743957],[1273795200000, 5.740451],[1273881600000, 5.732087],[1274054400000, 5.732087],[1274140800000, 5.703120],[1274227200000, 5.717948],[1274313600000, 5.674759],[1274400000000, 5.621691],[1274486400000, 5.627555],[1274572800000, 5.627555],[1274659200000, 5.627555],[1274745600000, 5.627555],[1274832000000, 5.585090],[1274918400000, 5.636013],[1275004800000, 5.640403],[1275091200000, 5.669157],[1275177600000, 5.669157],[1275264000000, 5.669157]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });