$(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: [[1233446400000,0.0858264],[1233532800000,0.0858264],[1233619200000,0.0861557],[1233705600000,0.0860175],[1233792000000,0.0863656],[1233878400000,0.0858687],[1233964800000,0.0844295],[1234051200000,0.0844295],[1234137600000,0.0844295],[1234224000000,0.0840211],[1234310400000,0.0843364],[1234396800000,0.085513],[1234483200000,0.085583],[1234569600000,null],[1234656000000,null],[1234742400000,0.0839673],[1234828800000,0.0837727],[1234915200000,0.0837193],[1235001600000,0.0830174],[1235088000000,0.0822157],[1235174400000,0.0817322],[1235260800000,0.0817322],[1235347200000,0.0817322],[1235433600000,0.0813813],[1235520000000,0.0802901],[1235606400000,0.0796069],[1235692800000,0.0785298],[1235779200000,0.0790058]], 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: [[1233446400000, 0.085826],[1233446400000, 0.085826],[1233532800000, 0.085826],[1233619200000, 0.086156],[1233705600000, 0.086017],[1233792000000, 0.086366],[1233878400000, 0.085869],[1233964800000, 0.084430],[1234051200000, 0.084430],[1234137600000, 0.084430],[1234224000000, 0.084021],[1234310400000, 0.084336],[1234396800000, 0.085513],[1234483200000, 0.085583],[1234742400000, 0.083967],[1234828800000, 0.083773],[1234915200000, 0.083719],[1235001600000, 0.083017],[1235088000000, 0.082216],[1235174400000, 0.081732],[1235260800000, 0.081732],[1235347200000, 0.081732],[1235433600000, 0.081381],[1235520000000, 0.080290],[1235606400000, 0.079607],[1235692800000, 0.078530],[1235779200000, 0.079006]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });