$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1214870400000,10.8405],[1214956800000,10.8492],[1215043200000,10.8756],[1215129600000,10.9337],[1215216000000,10.7588],[1215302400000,10.7588],[1215388800000,10.7588],[1215475200000,10.7618],[1215561600000,10.7956],[1215648000000,10.8248],[1215734400000,10.8261],[1215820800000,10.913],[1215907200000,10.913],[1215993600000,10.913],[1216080000000,10.9163],[1216166400000,11.0153],[1216252800000,10.9419],[1216339200000,10.917],[1216425600000,10.889],[1216512000000,10.889],[1216598400000,10.889],[1216684800000,10.9148],[1216771200000,10.9536],[1216857600000,10.8404],[1216944000000,10.7918],[1217030400000,10.8357],[1217116800000,10.8357],[1217203200000,10.8357],[1217289600000,10.844],[1217376000000,10.8156],[1217462400000,10.7257]], 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: [[1214870400000, 10.840499],[1214870400000, 10.840499],[1214956800000, 10.849200],[1215043200000, 10.875595],[1215129600000, 10.933732],[1215216000000, 10.758753],[1215302400000, 10.758753],[1215388800000, 10.758753],[1215475200000, 10.761813],[1215561600000, 10.795573],[1215648000000, 10.824771],[1215734400000, 10.826110],[1215820800000, 10.912988],[1215907200000, 10.912988],[1215993600000, 10.912988],[1216080000000, 10.916346],[1216166400000, 11.015257],[1216252800000, 10.941902],[1216339200000, 10.917022],[1216425600000, 10.888967],[1216512000000, 10.888967],[1216598400000, 10.888967],[1216684800000, 10.914778],[1216771200000, 10.953648],[1216857600000, 10.840441],[1216944000000, 10.791837],[1217030400000, 10.835696],[1217116800000, 10.835696],[1217203200000, 10.835696],[1217289600000, 10.843986],[1217376000000, 10.815577],[1217462400000, 10.725684]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });