$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1130803200000,8.67698],[1130889600000,8.60307],[1130976000000,8.64726],[1131062400000,8.67698],[1131148800000,8.57385],[1131235200000,8.57385],[1131321600000,8.57385],[1131408000000,8.48739],[1131494400000,8.43072],[1131580800000,8.45896],[1131667200000,8.44482],[1131753600000,8.40266],[1131840000000,8.40266],[1131926400000,8.40266],[1132012800000,8.45896],[1132099200000,8.40266],[1132185600000,8.41667],[1132272000000,8.3887],[1132358400000,8.3887],[1132444800000,8.3887],[1132531200000,8.3887],[1132617600000,8.45896],[1132704000000,8.43072],[1132790400000,8.51602],[1132876800000,8.48739],[1132963200000,8.45896],[1133049600000,8.45896],[1133136000000,8.45896],[1133222400000,8.40266],[1133308800000,8.50168]], 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: [[1130803200000, 8.676976],[1130803200000, 8.676976],[1130889600000, 8.603066],[1130976000000, 8.647260],[1131062400000, 8.676976],[1131148800000, 8.573854],[1131235200000, 8.573854],[1131321600000, 8.573854],[1131408000000, 8.487395],[1131494400000, 8.430718],[1131580800000, 8.458961],[1131667200000, 8.444816],[1131753600000, 8.402662],[1131840000000, 8.402662],[1131926400000, 8.402662],[1132012800000, 8.458961],[1132099200000, 8.402662],[1132185600000, 8.416667],[1132272000000, 8.388704],[1132358400000, 8.388704],[1132444800000, 8.388704],[1132531200000, 8.388704],[1132617600000, 8.458961],[1132704000000, 8.430718],[1132790400000, 8.516020],[1132876800000, 8.487395],[1132963200000, 8.458961],[1133049600000, 8.458961],[1133136000000, 8.458961],[1133222400000, 8.402662],[1133308800000, 8.501684]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });