$(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: [[1188604800000,9.91551],[1188691200000,9.91551],[1188777600000,9.91551],[1188864000000,9.86128],[1188950400000,9.83776],[1189036800000,9.82101],[1189123200000,9.8739],[1189209600000,9.90332],[1189296000000,9.90332],[1189382400000,9.90332],[1189468800000,9.97348],[1189555200000,9.96733],[1189641600000,10.007],[1189728000000,9.99713],[1189814400000,9.97051],[1189900800000,9.97051],[1189987200000,9.97051],[1190073600000,9.98416],[1190160000000,9.97413],[1190246400000,10.0261],[1190332800000,10.0158],[1190419200000,10.0506],[1190505600000,10.0506],[1190592000000,10.0506],[1190678400000,10.1179],[1190764800000,10.0928],[1190851200000,null],[1190937600000,null],[1191024000000,10.1739],[1191110400000,10.1739]], 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: [[1188604800000, 9.915509],[1188604800000, 9.915509],[1188691200000, 9.915509],[1188777600000, 9.915509],[1188864000000, 9.861281],[1188950400000, 9.837756],[1189036800000, 9.821010],[1189123200000, 9.873902],[1189209600000, 9.903322],[1189296000000, 9.903322],[1189382400000, 9.903322],[1189468800000, 9.973479],[1189555200000, 9.967333],[1189641600000, 10.007029],[1189728000000, 9.997130],[1189814400000, 9.970513],[1189900800000, 9.970513],[1189987200000, 9.970513],[1190073600000, 9.984164],[1190160000000, 9.974128],[1190246400000, 10.026105],[1190332800000, 10.015762],[1190419200000, 10.050637],[1190505600000, 10.050637],[1190592000000, 10.050637],[1190678400000, 10.117923],[1190764800000, 10.092845],[1191024000000, 10.173906],[1191110400000, 10.173906]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });