$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1530403200000,1.56081],[1530489600000,1.56081],[1530576000000,1.55827],[1530662400000,1.56492],[1530748800000,1.57437],[1530835200000,1.57595],[1530921600000,1.57242],[1531008000000,1.57242],[1531094400000,1.57242],[1531180800000,1.57019],[1531267200000,1.57145],[1531353600000,1.57243],[1531440000000,1.574],[1531526400000,1.57224],[1531612800000,1.57224],[1531699200000,1.57224],[1531785600000,1.5692],[1531872000000,1.57183],[1531958400000,1.57782],[1532044800000,1.58869],[1532131200000,1.58497],[1532217600000,1.58497],[1532304000000,1.58497],[1532390400000,1.58565],[1532476800000,1.59716],[1532563200000,1.5995],[1532649600000,1.60522],[1532736000000,1.61221],[1532822400000,1.61221],[1532908800000,1.61221],[1532995200000,1.61378]], 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: [[1530403200000, 1.560814],[1530403200000, 1.560814],[1530489600000, 1.560814],[1530576000000, 1.558270],[1530662400000, 1.564920],[1530748800000, 1.574374],[1530835200000, 1.575950],[1530921600000, 1.572425],[1531008000000, 1.572425],[1531094400000, 1.572425],[1531180800000, 1.570187],[1531267200000, 1.571453],[1531353600000, 1.572434],[1531440000000, 1.574001],[1531526400000, 1.572245],[1531612800000, 1.572245],[1531699200000, 1.572245],[1531785600000, 1.569197],[1531872000000, 1.571829],[1531958400000, 1.577818],[1532044800000, 1.588686],[1532131200000, 1.584966],[1532217600000, 1.584966],[1532304000000, 1.584966],[1532390400000, 1.585646],[1532476800000, 1.597164],[1532563200000, 1.599500],[1532649600000, 1.605217],[1532736000000, 1.612207],[1532822400000, 1.612207],[1532908800000, 1.612207],[1532995200000, 1.613782]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });