$(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: [[1349049600000,6.5213],[1349136000000,6.50318],[1349222400000,6.50611],[1349308800000,6.48853],[1349395200000,6.50643],[1349481600000,6.51527],[1349568000000,6.51527],[1349654400000,6.51527],[1349740800000,6.49322],[1349827200000,6.50621],[1349913600000,6.50678],[1350000000000,6.51154],[1350086400000,6.54725],[1350172800000,6.54725],[1350259200000,6.54725],[1350345600000,6.5461],[1350432000000,6.54675],[1350518400000,6.57316],[1350604800000,6.56475],[1350691200000,6.54699],[1350777600000,6.54699],[1350864000000,6.54699],[1350950400000,6.54132],[1351036800000,6.52577],[1351123200000,6.53394],[1351209600000,6.55431],[1351296000000,6.54074],[1351382400000,6.54074],[1351468800000,6.54074],[1351555200000,6.54397],[1351641600000,6.55398]], 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: [[1349049600000, 6.521295],[1349049600000, 6.521295],[1349136000000, 6.503182],[1349222400000, 6.506106],[1349308800000, 6.488530],[1349395200000, 6.506433],[1349481600000, 6.515265],[1349568000000, 6.515265],[1349654400000, 6.515265],[1349740800000, 6.493216],[1349827200000, 6.506211],[1349913600000, 6.506776],[1350000000000, 6.511545],[1350086400000, 6.547253],[1350172800000, 6.547253],[1350259200000, 6.547253],[1350345600000, 6.546104],[1350432000000, 6.546753],[1350518400000, 6.573158],[1350604800000, 6.564749],[1350691200000, 6.546987],[1350777600000, 6.546987],[1350864000000, 6.546987],[1350950400000, 6.541321],[1351036800000, 6.525768],[1351123200000, 6.533944],[1351209600000, 6.554310],[1351296000000, 6.540741],[1351382400000, 6.540741],[1351468800000, 6.540741],[1351555200000, 6.543971],[1351641600000, 6.553977]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });