$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1338508800000,7.76828],[1338595200000,7.69764],[1338681600000,7.69764],[1338768000000,7.69764],[1338854400000,7.69764],[1338940800000,7.68281],[1339027200000,7.72998],[1339113600000,7.80837],[1339200000000,7.72844],[1339286400000,7.72844],[1339372800000,7.72844],[1339459200000,7.79914],[1339545600000,7.76862],[1339632000000,7.68281],[1339718400000,7.78532],[1339804800000,7.80354],[1339891200000,7.80354],[1339977600000,7.80354],[1340064000000,7.79121],[1340150400000,7.82507],[1340236800000,7.85949],[1340323200000,7.84574],[1340409600000,7.77305],[1340496000000,7.77305],[1340582400000,7.77305],[1340668800000,7.7607],[1340755200000,7.77499],[1340841600000,7.79387],[1340928000000,7.79387],[1341014400000,7.79387]], 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: [[1338508800000, 7.768277],[1338508800000, 7.768277],[1338595200000, 7.697638],[1338681600000, 7.697638],[1338768000000, 7.697638],[1338854400000, 7.697638],[1338940800000, 7.682814],[1339027200000, 7.729984],[1339113600000, 7.808372],[1339200000000, 7.728439],[1339286400000, 7.728439],[1339372800000, 7.728439],[1339459200000, 7.799138],[1339545600000, 7.768620],[1339632000000, 7.682814],[1339718400000, 7.785321],[1339804800000, 7.803545],[1339891200000, 7.803545],[1339977600000, 7.803545],[1340064000000, 7.791206],[1340150400000, 7.825072],[1340236800000, 7.859488],[1340323200000, 7.845741],[1340409600000, 7.773052],[1340496000000, 7.773052],[1340582400000, 7.773052],[1340668800000, 7.760698],[1340755200000, 7.774987],[1340841600000, 7.793874],[1340928000000, 7.793874],[1341014400000, 7.793874]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });