$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1170288000000,4.26869],[1170374400000,4.28876],[1170460800000,4.26677],[1170547200000,4.26677],[1170633600000,4.26677],[1170720000000,4.26275],[1170806400000,4.26986],[1170892800000,4.26704],[1170979200000,4.25644],[1171065600000,4.29428],[1171152000000,4.29428],[1171238400000,4.29428],[1171324800000,4.31098],[1171411200000,4.31135],[1171497600000,4.32782],[1171584000000,4.32871],[1171670400000,4.34176],[1171756800000,4.34176],[1171843200000,4.34176],[1171929600000,4.33215],[1172016000000,4.3322],[1172102400000,4.32486],[1172188800000,4.35029],[1172275200000,4.35787],[1172361600000,null],[1172448000000,4.35787],[1172534400000,4.35619],[1172620800000,4.34999]], 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, 4.268692],[1170288000000, 4.268692],[1170374400000, 4.288761],[1170460800000, 4.266775],[1170547200000, 4.266775],[1170633600000, 4.266775],[1170720000000, 4.262751],[1170806400000, 4.269857],[1170892800000, 4.267036],[1170979200000, 4.256443],[1171065600000, 4.294283],[1171152000000, 4.294283],[1171238400000, 4.294283],[1171324800000, 4.310984],[1171411200000, 4.311355],[1171497600000, 4.327815],[1171584000000, 4.328713],[1171670400000, 4.341762],[1171756800000, 4.341762],[1171843200000, 4.341762],[1171929600000, 4.332153],[1172016000000, 4.332197],[1172102400000, 4.324858],[1172188800000, 4.350289],[1172275200000, 4.357865],[1172448000000, 4.357865],[1172534400000, 4.356188],[1172620800000, 4.349990]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });