$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1267401600000,0.26599],[1267488000000,0.26696],[1267574400000,0.26636],[1267660800000,0.26779],[1267747200000,0.26773],[1267833600000,0.26758],[1267920000000,0.26758],[1268006400000,0.26758],[1268092800000,0.26758],[1268179200000,0.26837],[1268265600000,0.26854],[1268352000000,0.27034],[1268438400000,0.27146],[1268524800000,0.27146],[1268611200000,0.27146],[1268697600000,0.27191],[1268784000000,0.27109],[1268870400000,0.27322],[1268956800000,0.27294],[1269043200000,0.27208],[1269129600000,0.27208],[1269216000000,0.27208],[1269302400000,0.27112],[1269388800000,0.26976],[1269475200000,0.26829],[1269561600000,0.26742],[1269648000000,0.26868],[1269734400000,0.26868],[1269820800000,0.26868],[1269907200000,0.26746],[1269993600000,0.26989]], 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: [[1267401600000, 0.265990],[1267401600000, 0.265990],[1267488000000, 0.266960],[1267574400000, 0.266360],[1267660800000, 0.267790],[1267747200000, 0.267730],[1267833600000, 0.267580],[1267920000000, 0.267580],[1268006400000, 0.267580],[1268092800000, 0.267580],[1268179200000, 0.268370],[1268265600000, 0.268540],[1268352000000, 0.270340],[1268438400000, 0.271460],[1268524800000, 0.271460],[1268611200000, 0.271460],[1268697600000, 0.271910],[1268784000000, 0.271090],[1268870400000, 0.273220],[1268956800000, 0.272940],[1269043200000, 0.272080],[1269129600000, 0.272080],[1269216000000, 0.272080],[1269302400000, 0.271120],[1269388800000, 0.269760],[1269475200000, 0.268290],[1269561600000, 0.267420],[1269648000000, 0.268680],[1269734400000, 0.268680],[1269820800000, 0.268680],[1269907200000, 0.267460],[1269993600000, 0.269890]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });