$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1285891200000,0.0391498],[1285977600000,0.0396463],[1286064000000,0.0396463],[1286150400000,0.0396463],[1286236800000,0.0398226],[1286323200000,0.0399657],[1286409600000,0.0405429],[1286496000000,0.0404278],[1286582400000,0.0398265],[1286668800000,0.0398265],[1286755200000,0.0398265],[1286841600000,0.0402264],[1286928000000,0.0399553],[1287014400000,0.0403753],[1287100800000,0.0407565],[1287187200000,0.0406411],[1287273600000,0.0406411],[1287360000000,0.0406411],[1287446400000,0.0397425],[1287532800000,0.0395994],[1287619200000,0.0397934],[1287705600000,0.0403967],[1287792000000,0.0400374],[1287878400000,0.0400374],[1287964800000,0.0400374],[1288051200000,0.0405834],[1288137600000,0.0400824],[1288224000000,0.0397047],[1288310400000,0.0401211],[1288396800000,0.0403381],[1288483200000,0.0403381]], 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, 0.039150],[1285891200000, 0.039150],[1285977600000, 0.039646],[1286064000000, 0.039646],[1286150400000, 0.039646],[1286236800000, 0.039823],[1286323200000, 0.039966],[1286409600000, 0.040543],[1286496000000, 0.040428],[1286582400000, 0.039827],[1286668800000, 0.039827],[1286755200000, 0.039827],[1286841600000, 0.040226],[1286928000000, 0.039955],[1287014400000, 0.040375],[1287100800000, 0.040757],[1287187200000, 0.040641],[1287273600000, 0.040641],[1287360000000, 0.040641],[1287446400000, 0.039743],[1287532800000, 0.039599],[1287619200000, 0.039793],[1287705600000, 0.040397],[1287792000000, 0.040037],[1287878400000, 0.040037],[1287964800000, 0.040037],[1288051200000, 0.040583],[1288137600000, 0.040082],[1288224000000, 0.039705],[1288310400000, 0.040121],[1288396800000, 0.040338],[1288483200000, 0.040338]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });