$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1188604800000,2.00447],[1188691200000,2.00447],[1188777600000,2.00447],[1188864000000,1.99379],[1188950400000,1.98619],[1189036800000,1.98735],[1189123200000,1.9992],[1189209600000,2.00315],[1189296000000,2.00315],[1189382400000,2.00315],[1189468800000,2.01763],[1189555200000,2.02187],[1189641600000,2.03079],[1189728000000,2.03255],[1189814400000,2.02714],[1189900800000,2.02714],[1189987200000,2.02714],[1190073600000,2.02962],[1190160000000,2.02816],[1190246400000,2.04396],[1190332800000,2.052],[1190419200000,2.05478],[1190505600000,2.05478],[1190592000000,2.05478],[1190678400000,2.06414],[1190764800000,2.06312],[1190851200000,null],[1190937600000,null],[1191024000000,2.07379],[1191110400000,2.07379]], 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, 2.004467],[1188604800000, 2.004467],[1188691200000, 2.004467],[1188777600000, 2.004467],[1188864000000, 1.993791],[1188950400000, 1.986185],[1189036800000, 1.987355],[1189123200000, 1.999202],[1189209600000, 2.003151],[1189296000000, 2.003151],[1189382400000, 2.003151],[1189468800000, 2.017631],[1189555200000, 2.021872],[1189641600000, 2.030794],[1189728000000, 2.032549],[1189814400000, 2.027137],[1189900800000, 2.027137],[1189987200000, 2.027137],[1190073600000, 2.029624],[1190160000000, 2.028161],[1190246400000, 2.043957],[1190332800000, 2.052001],[1190419200000, 2.054780],[1190505600000, 2.054780],[1190592000000, 2.054780],[1190678400000, 2.064141],[1190764800000, 2.063117],[1191024000000, 2.073794],[1191110400000, 2.073794]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });