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