$(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: [[1270080000000,2.7807],[1270166400000,2.7807],[1270252800000,2.7807],[1270339200000,2.7807],[1270425600000,2.7807],[1270512000000,2.7807],[1270598400000,2.7807],[1270684800000,2.78042],[1270771200000,2.78116],[1270857600000,2.78123],[1270944000000,2.78123],[1271030400000,2.78123],[1271116800000,2.78123],[1271203200000,2.78116],[1271289600000,2.78116],[1271376000000,2.78098],[1271462400000,2.78098],[1271548800000,2.78098],[1271635200000,2.78098],[1271721600000,2.78102],[1271808000000,2.78091],[1271894400000,2.78105],[1271980800000,2.78098],[1272067200000,2.78098],[1272153600000,2.78098],[1272240000000,2.78098],[1272326400000,2.78109],[1272412800000,2.78102],[1272499200000,2.78102],[1272585600000,2.78102]], 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: [[1270080000000, 2.780702],[1270080000000, 2.780702],[1270166400000, 2.780702],[1270252800000, 2.780702],[1270339200000, 2.780702],[1270425600000, 2.780702],[1270512000000, 2.780702],[1270598400000, 2.780702],[1270684800000, 2.780421],[1270771200000, 2.781158],[1270857600000, 2.781228],[1270944000000, 2.781228],[1271030400000, 2.781228],[1271116800000, 2.781228],[1271203200000, 2.781158],[1271289600000, 2.781158],[1271376000000, 2.780982],[1271462400000, 2.780982],[1271548800000, 2.780982],[1271635200000, 2.780982],[1271721600000, 2.781018],[1271808000000, 2.780912],[1271894400000, 2.781053],[1271980800000, 2.780982],[1272067200000, 2.780982],[1272153600000, 2.780982],[1272240000000, 2.780982],[1272326400000, 2.781088],[1272412800000, 2.781018],[1272499200000, 2.781018],[1272585600000, 2.781018]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });