$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1346457600000,1.38224],[1346544000000,1.38224],[1346630400000,1.38224],[1346716800000,1.37583],[1346803200000,1.37939],[1346889600000,1.37589],[1346976000000,1.37017],[1347062400000,1.37745],[1347148800000,1.37745],[1347235200000,1.37745],[1347321600000,1.38185],[1347408000000,1.38322],[1347494400000,1.39163],[1347580800000,1.39088],[1347667200000,1.40901],[1347753600000,1.40901],[1347840000000,1.40901],[1347926400000,1.39975],[1348012800000,1.39764],[1348099200000,1.39844],[1348185600000,1.39318],[1348272000000,1.39881],[1348358400000,1.39881],[1348444800000,1.39881],[1348531200000,1.38816],[1348617600000,1.39683],[1348704000000,1.38687],[1348790400000,1.39433],[1348876800000,1.4024],[1348963200000,1.4024]], 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: [[1346457600000, 1.382238],[1346457600000, 1.382238],[1346544000000, 1.382238],[1346630400000, 1.382238],[1346716800000, 1.375827],[1346803200000, 1.379393],[1346889600000, 1.375886],[1346976000000, 1.370167],[1347062400000, 1.377446],[1347148800000, 1.377446],[1347235200000, 1.377446],[1347321600000, 1.381848],[1347408000000, 1.383225],[1347494400000, 1.391626],[1347580800000, 1.390883],[1347667200000, 1.409010],[1347753600000, 1.409010],[1347840000000, 1.409010],[1347926400000, 1.399751],[1348012800000, 1.397637],[1348099200000, 1.398439],[1348185600000, 1.393182],[1348272000000, 1.398815],[1348358400000, 1.398815],[1348444800000, 1.398815],[1348531200000, 1.388162],[1348617600000, 1.396831],[1348704000000, 1.386871],[1348790400000, 1.394334],[1348876800000, 1.402395],[1348963200000, 1.402395]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });