$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1168041600000,7.57241],[1168128000000,7.57241],[1168214400000,7.57241],[1168300800000,7.57241],[1168387200000,7.55364],[1168473600000,7.54617],[1168560000000,7.5307],[1168646400000,7.52336],[1168732800000,7.52336],[1168819200000,7.52336],[1168905600000,7.52336],[1168992000000,7.54698],[1169078400000,7.53352],[1169164800000,7.53456],[1169251200000,7.54087],[1169337600000,7.54087],[1169424000000,7.54087],[1169510400000,7.5373],[1169596800000,7.56036],[1169683200000,7.54991],[1169769600000,7.54929],[1169856000000,7.52079],[1169942400000,7.52079],[1170028800000,7.52079],[1170115200000,7.5217],[1170201600000,7.53279]], 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: [[1168041600000, 7.572406],[1168041600000, 7.572406],[1168128000000, 7.572406],[1168214400000, 7.572406],[1168300800000, 7.572406],[1168387200000, 7.553638],[1168473600000, 7.546166],[1168560000000, 7.530704],[1168646400000, 7.523356],[1168732800000, 7.523356],[1168819200000, 7.523356],[1168905600000, 7.523356],[1168992000000, 7.546978],[1169078400000, 7.533524],[1169164800000, 7.534558],[1169251200000, 7.540870],[1169337600000, 7.540870],[1169424000000, 7.540870],[1169510400000, 7.537302],[1169596800000, 7.560356],[1169683200000, 7.549912],[1169769600000, 7.549291],[1169856000000, 7.520790],[1169942400000, 7.520790],[1170028800000, 7.520790],[1170115200000, 7.521697],[1170201600000, 7.532794]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });