$(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: [[1267401600000,1.34797],[1267488000000,1.34125],[1267574400000,1.34411],[1267660800000,1.34881],[1267747200000,1.35554],[1267833600000,1.3472],[1267920000000,1.3472],[1268006400000,1.3472],[1268092800000,1.3472],[1268179200000,1.34609],[1268265600000,1.35589],[1268352000000,1.3604],[1268438400000,1.36708],[1268524800000,1.36708],[1268611200000,1.36708],[1268697600000,1.36387],[1268784000000,1.36583],[1268870400000,1.36976],[1268956800000,1.36207],[1269043200000,1.35262],[1269129600000,1.35262],[1269216000000,1.35262],[1269302400000,1.33201],[1269388800000,1.33645],[1269475200000,1.31835],[1269561600000,1.31146],[1269648000000,1.3076],[1269734400000,1.3076],[1269820800000,1.3076],[1269907200000,1.32339],[1269993600000,1.32875]], 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: [[1267401600000, 1.347974],[1267401600000, 1.347974],[1267488000000, 1.341253],[1267574400000, 1.344111],[1267660800000, 1.348811],[1267747200000, 1.355544],[1267833600000, 1.347198],[1267920000000, 1.347198],[1268006400000, 1.347198],[1268092800000, 1.347198],[1268179200000, 1.346090],[1268265600000, 1.355887],[1268352000000, 1.360398],[1268438400000, 1.367075],[1268524800000, 1.367075],[1268611200000, 1.367075],[1268697600000, 1.363866],[1268784000000, 1.365828],[1268870400000, 1.369761],[1268956800000, 1.362072],[1269043200000, 1.352625],[1269129600000, 1.352625],[1269216000000, 1.352625],[1269302400000, 1.332012],[1269388800000, 1.336451],[1269475200000, 1.318349],[1269561600000, 1.311458],[1269648000000, 1.307598],[1269734400000, 1.307598],[1269820800000, 1.307598],[1269907200000, 1.323388],[1269993600000, 1.328751]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });