$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1349049600000,10.1796],[1349136000000,10.1796],[1349222400000,10.1796],[1349308800000,10.1796],[1349395200000,10.1796],[1349481600000,10.1809],[1349568000000,10.1809],[1349654400000,10.1809],[1349740800000,10.1809],[1349827200000,10.1809],[1349913600000,10.1809],[1350000000000,10.1809],[1350086400000,10.1822],[1350172800000,10.1822],[1350259200000,10.1822],[1350345600000,10.1822],[1350432000000,10.1796],[1350518400000,10.1796],[1350604800000,10.1796],[1350691200000,10.1809],[1350777600000,10.1809],[1350864000000,10.1809],[1350950400000,10.1822],[1351036800000,10.1822],[1351123200000,10.1822],[1351209600000,10.1822],[1351296000000,10.1822],[1351382400000,10.1822],[1351468800000,10.1822],[1351555200000,10.1822],[1351641600000,10.1822]], 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: [[1349049600000, 10.179572],[1349049600000, 10.179572],[1349136000000, 10.179572],[1349222400000, 10.179572],[1349308800000, 10.179572],[1349395200000, 10.179572],[1349481600000, 10.180869],[1349568000000, 10.180869],[1349654400000, 10.180869],[1349740800000, 10.180869],[1349827200000, 10.180869],[1349913600000, 10.180869],[1350000000000, 10.180869],[1350086400000, 10.182166],[1350172800000, 10.182166],[1350259200000, 10.182166],[1350345600000, 10.182166],[1350432000000, 10.179572],[1350518400000, 10.179572],[1350604800000, 10.179572],[1350691200000, 10.180869],[1350777600000, 10.180869],[1350864000000, 10.180869],[1350950400000, 10.182166],[1351036800000, 10.182166],[1351123200000, 10.182166],[1351209600000, 10.182166],[1351296000000, 10.182166],[1351382400000, 10.182166],[1351468800000, 10.182166],[1351555200000, 10.182166],[1351641600000, 10.182166]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });