$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1285891200000,12.3094],[1285977600000,12.3294],[1286064000000,12.3294],[1286150400000,12.3294],[1286236800000,12.3161],[1286323200000,12.3441],[1286409600000,12.3717],[1286496000000,12.4337],[1286582400000,12.4008],[1286668800000,12.4008],[1286755200000,12.4008],[1286841600000,12.4008],[1286928000000,12.3843],[1287014400000,12.4427],[1287100800000,12.4935],[1287187200000,12.5013],[1287273600000,12.5013],[1287360000000,12.5013],[1287446400000,12.4391],[1287532800000,12.4341],[1287619200000,12.4038],[1287705600000,12.4731],[1287792000000,12.4264],[1287878400000,12.4264],[1287964800000,12.4264],[1288051200000,12.4834],[1288137600000,12.454],[1288224000000,12.4019],[1288310400000,12.4177],[1288396800000,12.4344],[1288483200000,12.4344]], 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: [[1285891200000, 12.309445],[1285891200000, 12.309445],[1285977600000, 12.329416],[1286064000000, 12.329416],[1286150400000, 12.329416],[1286236800000, 12.316074],[1286323200000, 12.344116],[1286409600000, 12.371745],[1286496000000, 12.433685],[1286582400000, 12.400761],[1286668800000, 12.400761],[1286755200000, 12.400761],[1286841600000, 12.400761],[1286928000000, 12.384297],[1287014400000, 12.442721],[1287100800000, 12.493523],[1287187200000, 12.501265],[1287273600000, 12.501265],[1287360000000, 12.501265],[1287446400000, 12.439114],[1287532800000, 12.434129],[1287619200000, 12.403815],[1287705600000, 12.473100],[1287792000000, 12.426397],[1287878400000, 12.426397],[1287964800000, 12.426397],[1288051200000, 12.483413],[1288137600000, 12.453956],[1288224000000, 12.401871],[1288310400000, 12.417716],[1288396800000, 12.434398],[1288483200000, 12.434398]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });