$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1349049600000,8.54199],[1349136000000,8.50979],[1349222400000,8.53987],[1349308800000,8.52129],[1349395200000,8.53892],[1349481600000,8.58033],[1349568000000,8.58033],[1349654400000,8.58033],[1349740800000,8.55271],[1349827200000,8.5487],[1349913600000,8.50717],[1350000000000,8.54253],[1350086400000,8.57266],[1350172800000,8.57266],[1350259200000,8.57266],[1350345600000,8.57474],[1350432000000,8.62432],[1350518400000,8.66249],[1350604800000,8.66977],[1350691200000,8.62133],[1350777600000,8.62133],[1350864000000,8.62133],[1350950400000,8.63128],[1351036800000,8.59224],[1351123200000,8.54921],[1351209600000,8.58502],[1351296000000,8.5338],[1351382400000,8.5338],[1351468800000,8.5338],[1351555200000,8.52931],[1351641600000,8.57305]], 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, 8.541986],[1349049600000, 8.541986],[1349136000000, 8.509786],[1349222400000, 8.539869],[1349308800000, 8.521288],[1349395200000, 8.538921],[1349481600000, 8.580332],[1349568000000, 8.580332],[1349654400000, 8.580332],[1349740800000, 8.552708],[1349827200000, 8.548702],[1349913600000, 8.507166],[1350000000000, 8.542531],[1350086400000, 8.572663],[1350172800000, 8.572663],[1350259200000, 8.572663],[1350345600000, 8.574742],[1350432000000, 8.624322],[1350518400000, 8.662495],[1350604800000, 8.669768],[1350691200000, 8.621329],[1350777600000, 8.621329],[1350864000000, 8.621329],[1350950400000, 8.631277],[1351036800000, 8.592244],[1351123200000, 8.549207],[1351209600000, 8.585025],[1351296000000, 8.533800],[1351382400000, 8.533800],[1351468800000, 8.533800],[1351555200000, 8.529305],[1351641600000, 8.573046]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });