$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1349049600000,4.45414],[1349136000000,4.45239],[1349222400000,4.46049],[1349308800000,4.45979],[1349395200000,4.42647],[1349481600000,4.44599],[1349568000000,4.44599],[1349654400000,4.44599],[1349740800000,4.4085],[1349827200000,4.40755],[1349913600000,4.40735],[1350000000000,4.41123],[1350086400000,4.42331],[1350172800000,4.42331],[1350259200000,4.42331],[1350345600000,4.41875],[1350432000000,4.42131],[1350518400000,4.43811],[1350604800000,4.44854],[1350691200000,4.44397],[1350777600000,4.44397],[1350864000000,4.44397],[1350950400000,4.45275],[1351036800000,4.43525],[1351123200000,4.42737],[1351209600000,4.44405],[1351296000000,4.43034],[1351382400000,4.43034],[1351468800000,4.43034],[1351555200000,4.43662],[1351641600000,4.44524]], 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, 4.454143],[1349049600000, 4.454143],[1349136000000, 4.452388],[1349222400000, 4.460487],[1349308800000, 4.459795],[1349395200000, 4.426466],[1349481600000, 4.445989],[1349568000000, 4.445989],[1349654400000, 4.445989],[1349740800000, 4.408500],[1349827200000, 4.407549],[1349913600000, 4.407349],[1350000000000, 4.411226],[1350086400000, 4.423314],[1350172800000, 4.423314],[1350259200000, 4.423314],[1350345600000, 4.418753],[1350432000000, 4.421313],[1350518400000, 4.438112],[1350604800000, 4.448544],[1350691200000, 4.443965],[1350777600000, 4.443965],[1350864000000, 4.443965],[1350950400000, 4.452751],[1351036800000, 4.435250],[1351123200000, 4.427366],[1351209600000, 4.444052],[1351296000000, 4.430335],[1351382400000, 4.430335],[1351468800000, 4.430335],[1351555200000, 4.436619],[1351641600000, 4.445242]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });