$(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: [[1377993600000,1.30755],[1378080000000,1.30755],[1378166400000,1.31798],[1378252800000,1.31588],[1378339200000,1.31537],[1378425600000,1.31118],[1378512000000,1.31022],[1378598400000,1.31022],[1378684800000,1.31022],[1378771200000,1.31463],[1378857600000,1.34623],[1378944000000,1.35097],[1379030400000,1.35226],[1379116800000,1.35037],[1379203200000,1.35037],[1379289600000,1.35037],[1379376000000,1.35279],[1379462400000,1.35725],[1379548800000,1.35237],[1379635200000,1.38058],[1379721600000,1.34912],[1379808000000,1.34912],[1379894400000,1.34912],[1379980800000,1.35453],[1380067200000,1.34276],[1380153600000,1.32715],[1380240000000,1.33826],[1380326400000,1.33532],[1380412800000,1.33532],[1380499200000,1.33532]], 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: [[1377993600000, 1.307550],[1377993600000, 1.307550],[1378080000000, 1.307550],[1378166400000, 1.317979],[1378252800000, 1.315883],[1378339200000, 1.315372],[1378425600000, 1.311178],[1378512000000, 1.310225],[1378598400000, 1.310225],[1378684800000, 1.310225],[1378771200000, 1.314630],[1378857600000, 1.346232],[1378944000000, 1.350970],[1379030400000, 1.352262],[1379116800000, 1.350365],[1379203200000, 1.350365],[1379289600000, 1.350365],[1379376000000, 1.352794],[1379462400000, 1.357250],[1379548800000, 1.352373],[1379635200000, 1.380581],[1379721600000, 1.349121],[1379808000000, 1.349121],[1379894400000, 1.349121],[1379980800000, 1.354528],[1380067200000, 1.342764],[1380153600000, 1.327154],[1380240000000, 1.338264],[1380326400000, 1.335323],[1380412800000, 1.335323],[1380499200000, 1.335323]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });