$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1170288000000,6.54177],[1170374400000,6.5751],[1170460800000,6.5751],[1170547200000,6.5751],[1170633600000,6.5751],[1170720000000,6.52712],[1170806400000,6.54228],[1170892800000,6.55844],[1170979200000,6.56046],[1171065600000,6.56853],[1171152000000,6.56853],[1171238400000,6.56853],[1171324800000,6.54278],[1171411200000,6.57611],[1171497600000,6.60641],[1171584000000,6.63419],[1171670400000,6.62509],[1171756800000,6.62509],[1171843200000,6.62509],[1171929600000,6.63166],[1172016000000,6.63823],[1172102400000,6.63823],[1172188800000,6.61853],[1172275200000,6.63267],[1172361600000,null],[1172448000000,6.63267],[1172534400000,6.6458],[1172620800000,6.68115]], 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: [[1170288000000, 6.541770],[1170288000000, 6.541770],[1170374400000, 6.575100],[1170460800000, 6.575100],[1170547200000, 6.575100],[1170633600000, 6.575100],[1170720000000, 6.527125],[1170806400000, 6.542275],[1170892800000, 6.558435],[1170979200000, 6.560455],[1171065600000, 6.568535],[1171152000000, 6.568535],[1171238400000, 6.568535],[1171324800000, 6.542780],[1171411200000, 6.576110],[1171497600000, 6.606410],[1171584000000, 6.634185],[1171670400000, 6.625095],[1171756800000, 6.625095],[1171843200000, 6.625095],[1171929600000, 6.631660],[1172016000000, 6.638225],[1172102400000, 6.638225],[1172188800000, 6.618530],[1172275200000, 6.632670],[1172448000000, 6.632670],[1172534400000, 6.645800],[1172620800000, 6.681150]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });