$(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: [[1277942400000,9.83369],[1278028800000,9.83792],[1278115200000,9.84138],[1278201600000,9.84138],[1278288000000,9.84138],[1278374400000,9.84026],[1278460800000,9.83877],[1278547200000,9.83727],[1278633600000,9.83798],[1278720000000,9.83549],[1278806400000,9.83549],[1278892800000,9.83549],[1278979200000,9.83474],[1279065600000,9.83105],[1279152000000,9.83165],[1279238400000,9.83053],[1279324800000,9.83051],[1279411200000,9.83051],[1279497600000,9.83051],[1279584000000,9.82867],[1279670400000,9.8295],[1279756800000,9.82618],[1279843200000,9.82458],[1279929600000,9.82578],[1280016000000,9.82578],[1280102400000,9.82578],[1280188800000,9.82479],[1280275200000,9.82354],[1280361600000,9.8223],[1280448000000,9.8223],[1280534400000,9.82168]], 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: [[1277942400000, 9.833686],[1277942400000, 9.833686],[1278028800000, 9.837915],[1278115200000, 9.841378],[1278201600000, 9.841378],[1278288000000, 9.841378],[1278374400000, 9.840259],[1278460800000, 9.838766],[1278547200000, 9.837273],[1278633600000, 9.837979],[1278720000000, 9.835490],[1278806400000, 9.835490],[1278892800000, 9.835490],[1278979200000, 9.834744],[1279065600000, 9.831053],[1279152000000, 9.831654],[1279238400000, 9.830534],[1279324800000, 9.830513],[1279411200000, 9.830513],[1279497600000, 9.830513],[1279584000000, 9.828667],[1279670400000, 9.829496],[1279756800000, 9.826179],[1279843200000, 9.824583],[1279929600000, 9.825784],[1280016000000, 9.825784],[1280102400000, 9.825784],[1280188800000, 9.824788],[1280275200000, 9.823544],[1280361600000, 9.822300],[1280448000000, 9.822300],[1280534400000, 9.821677]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });