$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1217548800000,4.62498],[1217635200000,4.62249],[1217721600000,4.62249],[1217808000000,4.62249],[1217894400000,4.6139],[1217980800000,4.59948],[1218067200000,4.60274],[1218153600000,4.59239],[1218240000000,null],[1218326400000,null],[1218412800000,4.49769],[1218499200000,4.48915],[1218585600000,4.45381],[1218672000000,4.45316],[1218758400000,4.45216],[1218844800000,4.4156],[1218931200000,4.4156],[1219017600000,4.4156],[1219104000000,4.40402],[1219190400000,4.41303],[1219276800000,4.41173],[1219363200000,4.43705],[1219449600000,4.41968],[1219536000000,4.41968],[1219622400000,4.41968],[1219708800000,4.41968],[1219795200000,4.38329],[1219881600000,4.43568],[1219968000000,4.4435],[1220054400000,4.41777],[1220140800000,4.41777]], 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, 4.624976],[1217548800000, 4.624976],[1217635200000, 4.622494],[1217721600000, 4.622494],[1217808000000, 4.622494],[1217894400000, 4.613901],[1217980800000, 4.599483],[1218067200000, 4.602736],[1218153600000, 4.592390],[1218412800000, 4.497692],[1218499200000, 4.489146],[1218585600000, 4.453805],[1218672000000, 4.453157],[1218758400000, 4.452155],[1218844800000, 4.415601],[1218931200000, 4.415601],[1219017600000, 4.415601],[1219104000000, 4.404016],[1219190400000, 4.413031],[1219276800000, 4.411730],[1219363200000, 4.437055],[1219449600000, 4.419679],[1219536000000, 4.419679],[1219622400000, 4.419679],[1219708800000, 4.419679],[1219795200000, 4.383290],[1219881600000, 4.435684],[1219968000000, 4.443496],[1220054400000, 4.417765],[1220140800000, 4.417765]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });