$(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: [[1136246400000,1.73498],[1136332800000,1.73498],[1136419200000,1.73498],[1136505600000,1.76876],[1136592000000,1.76876],[1136678400000,1.76876],[1136764800000,1.76876],[1136851200000,1.76876],[1136937600000,1.76364],[1137024000000,1.76382],[1137110400000,1.77635],[1137196800000,1.76555],[1137283200000,1.76555],[1137369600000,1.76555],[1137456000000,1.77723],[1137542400000,1.77492],[1137628800000,1.77299],[1137715200000,1.76759],[1137801600000,1.7666],[1137888000000,1.7666],[1137974400000,1.7666],[1138060800000,1.79059],[1138147200000,1.79715],[1138233600000,1.79505],[1138320000000,1.7939],[1138406400000,1.78527],[1138492800000,1.78527],[1138579200000,1.78527],[1138665600000,1.77069]], 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: [[1136246400000, 1.734978],[1136246400000, 1.734978],[1136332800000, 1.734978],[1136419200000, 1.734978],[1136505600000, 1.768765],[1136592000000, 1.768765],[1136678400000, 1.768765],[1136764800000, 1.768765],[1136851200000, 1.768765],[1136937600000, 1.763638],[1137024000000, 1.763822],[1137110400000, 1.776355],[1137196800000, 1.765549],[1137283200000, 1.765549],[1137369600000, 1.765549],[1137456000000, 1.777230],[1137542400000, 1.774919],[1137628800000, 1.772987],[1137715200000, 1.767588],[1137801600000, 1.766599],[1137888000000, 1.766599],[1137974400000, 1.766599],[1138060800000, 1.790590],[1138147200000, 1.797153],[1138233600000, 1.795045],[1138320000000, 1.793897],[1138406400000, 1.785272],[1138492800000, 1.785272],[1138579200000, 1.785272],[1138665600000, 1.770687]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });