$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1217548800000,0.0447502],[1217635200000,0.0450654],[1217721600000,0.0450654],[1217808000000,0.0450654],[1217894400000,0.0447882],[1217980800000,0.0449101],[1218067200000,0.0445904],[1218153600000,0.0443113],[1218240000000,null],[1218326400000,null],[1218412800000,0.0440997],[1218499200000,0.0441529],[1218585600000,0.0440437],[1218672000000,0.0445481],[1218758400000,0.0442027],[1218844800000,0.043852],[1218931200000,0.043852],[1219017600000,0.043852],[1219104000000,0.0439044],[1219190400000,0.0441248],[1219276800000,0.0439949],[1219363200000,0.0447496],[1219449600000,0.0441234],[1219536000000,0.0441234],[1219622400000,0.0441234],[1219708800000,0.0441234],[1219795200000,0.0441585],[1219881600000,0.0444505],[1219968000000,0.0443359],[1220054400000,0.0445692],[1220140800000,0.0445692]], 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, 0.044750],[1217548800000, 0.044750],[1217635200000, 0.045065],[1217721600000, 0.045065],[1217808000000, 0.045065],[1217894400000, 0.044788],[1217980800000, 0.044910],[1218067200000, 0.044590],[1218153600000, 0.044311],[1218412800000, 0.044100],[1218499200000, 0.044153],[1218585600000, 0.044044],[1218672000000, 0.044548],[1218758400000, 0.044203],[1218844800000, 0.043852],[1218931200000, 0.043852],[1219017600000, 0.043852],[1219104000000, 0.043904],[1219190400000, 0.044125],[1219276800000, 0.043995],[1219363200000, 0.044750],[1219449600000, 0.044123],[1219536000000, 0.044123],[1219622400000, 0.044123],[1219708800000, 0.044123],[1219795200000, 0.044159],[1219881600000, 0.044450],[1219968000000, 0.044336],[1220054400000, 0.044569],[1220140800000, 0.044569]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });