$(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: [[1133395200000,2.98286],[1133481600000,2.98862],[1133568000000,2.98529],[1133654400000,2.98529],[1133740800000,2.98529],[1133827200000,2.99422],[1133913600000,2.99377],[1134000000000,2.99314],[1134086400000,2.99542],[1134172800000,3.00032],[1134259200000,3.00032],[1134345600000,3.00032],[1134432000000,3.0031],[1134518400000,3.01604],[1134604800000,3.0207],[1134691200000,3.02929],[1134777600000,3.02556],[1134864000000,3.02556],[1134950400000,3.02556],[1135036800000,3.03421],[1135123200000,3.03609],[1135209600000,3.0298],[1135296000000,3.02055],[1135382400000,3.03107],[1135468800000,3.03107],[1135555200000,3.03107],[1135641600000,3.03107],[1135728000000,3.03021],[1135814400000,3.03015],[1135900800000,3.03359]], 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: [[1133395200000, 2.982858],[1133395200000, 2.982858],[1133481600000, 2.988625],[1133568000000, 2.985286],[1133654400000, 2.985286],[1133740800000, 2.985286],[1133827200000, 2.994223],[1133913600000, 2.993769],[1134000000000, 2.993142],[1134086400000, 2.995422],[1134172800000, 3.000315],[1134259200000, 3.000315],[1134345600000, 3.000315],[1134432000000, 3.003104],[1134518400000, 3.016039],[1134604800000, 3.020702],[1134691200000, 3.029293],[1134777600000, 3.025556],[1134864000000, 3.025556],[1134950400000, 3.025556],[1135036800000, 3.034205],[1135123200000, 3.036095],[1135209600000, 3.029796],[1135296000000, 3.020546],[1135382400000, 3.031073],[1135468800000, 3.031073],[1135555200000, 3.031073],[1135641600000, 3.031073],[1135728000000, 3.030205],[1135814400000, 3.030153],[1135900800000, 3.033592]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });