$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1338508800000,2.87103],[1338595200000,2.85228],[1338681600000,2.85228],[1338768000000,2.85228],[1338854400000,2.85228],[1338940800000,2.87705],[1339027200000,2.89001],[1339113600000,2.91547],[1339200000000,2.88608],[1339286400000,2.88608],[1339372800000,2.88608],[1339459200000,2.90367],[1339545600000,2.89163],[1339632000000,2.87705],[1339718400000,2.90529],[1339804800000,2.91571],[1339891200000,2.91571],[1339977600000,2.91571],[1340064000000,2.9208],[1340150400000,2.92103],[1340236800000,2.94071],[1340323200000,2.93284],[1340409600000,2.90251],[1340496000000,2.90251],[1340582400000,2.90251],[1340668800000,2.89071],[1340755200000,2.8877],[1340841600000,2.88839],[1340928000000,2.88839],[1341014400000,2.88839]], 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, 2.871032],[1338508800000, 2.871032],[1338595200000, 2.852282],[1338681600000, 2.852282],[1338768000000, 2.852282],[1338854400000, 2.852282],[1338940800000, 2.877050],[1339027200000, 2.890013],[1339113600000, 2.915475],[1339200000000, 2.886078],[1339286400000, 2.886078],[1339372800000, 2.886078],[1339459200000, 2.903670],[1339545600000, 2.891633],[1339632000000, 2.877050],[1339718400000, 2.905290],[1339804800000, 2.915707],[1339891200000, 2.915707],[1339977600000, 2.915707],[1340064000000, 2.920799],[1340150400000, 2.921031],[1340236800000, 2.940707],[1340323200000, 2.932836],[1340409600000, 2.902513],[1340496000000, 2.902513],[1340582400000, 2.902513],[1340668800000, 2.890707],[1340755200000, 2.887698],[1340841600000, 2.888392],[1340928000000, 2.888392],[1341014400000, 2.888392]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });