$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1170288000000,1.66567],[1170374400000,1.68601],[1170460800000,1.68471],[1170547200000,1.68471],[1170633600000,1.68471],[1170720000000,1.6829],[1170806400000,1.693],[1170892800000,1.69534],[1170979200000,1.69241],[1171065600000,1.68948],[1171152000000,1.68948],[1171238400000,1.68948],[1171324800000,1.66916],[1171411200000,1.68187],[1171497600000,1.6875],[1171584000000,1.7016],[1171670400000,1.6957],[1171756800000,1.6957],[1171843200000,1.6957],[1171929600000,1.70182],[1172016000000,1.70513],[1172102400000,1.70815],[1172188800000,1.70748],[1172275200000,1.70879],[1172361600000,null],[1172448000000,1.70879],[1172534400000,1.70703],[1172620800000,1.70751]], 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, 1.665674],[1170288000000, 1.665674],[1170374400000, 1.686010],[1170460800000, 1.684714],[1170547200000, 1.684714],[1170633600000, 1.684714],[1170720000000, 1.682899],[1170806400000, 1.693004],[1170892800000, 1.695343],[1170979200000, 1.692409],[1171065600000, 1.689481],[1171152000000, 1.689481],[1171238400000, 1.689481],[1171324800000, 1.669162],[1171411200000, 1.681870],[1171497600000, 1.687504],[1171584000000, 1.701597],[1171670400000, 1.695699],[1171756800000, 1.695699],[1171843200000, 1.695699],[1171929600000, 1.701822],[1172016000000, 1.705126],[1172102400000, 1.708153],[1172188800000, 1.707479],[1172275200000, 1.708790],[1172448000000, 1.708790],[1172534400000, 1.707028],[1172620800000, 1.707511]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });