$(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: [[1217548800000,5.989],[1217635200000,5.98678],[1217721600000,5.98678],[1217808000000,5.98678],[1217894400000,5.989],[1217980800000,5.98382],[1218067200000,5.98604],[1218153600000,5.9837],[1218240000000,null],[1218326400000,null],[1218412800000,5.97484],[1218499200000,5.96014],[1218585600000,5.95452],[1218672000000,5.95745],[1218758400000,5.95598],[1218844800000,5.9494],[1218931200000,5.9494],[1219017600000,5.9494],[1219104000000,5.94537],[1219190400000,5.94234],[1219276800000,5.95208],[1219363200000,5.95281],[1219449600000,5.9583],[1219536000000,5.9583],[1219622400000,5.9583],[1219708800000,5.9583],[1219795200000,5.95222],[1219881600000,5.95514],[1219968000000,5.9588],[1220054400000,5.95795],[1220140800000,5.95795]], 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: [[1217548800000, 5.988999],[1217548800000, 5.988999],[1217635200000, 5.986779],[1217721600000, 5.986779],[1217808000000, 5.986779],[1217894400000, 5.988999],[1217980800000, 5.983819],[1218067200000, 5.986037],[1218153600000, 5.983698],[1218412800000, 5.974843],[1218499200000, 5.960143],[1218585600000, 5.954523],[1218672000000, 5.957447],[1218758400000, 5.955982],[1218844800000, 5.949398],[1218931200000, 5.949398],[1219017600000, 5.949398],[1219104000000, 5.945372],[1219190400000, 5.942338],[1219276800000, 5.952077],[1219363200000, 5.952808],[1219449600000, 5.958297],[1219536000000, 5.958297],[1219622400000, 5.958297],[1219708800000, 5.958297],[1219795200000, 5.952217],[1219881600000, 5.955143],[1219968000000, 5.958805],[1220054400000, 5.957954],[1220140800000, 5.957954]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });