$(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: [[1117584000000,4.05097],[1117670400000,4.0374],[1117756800000,4.03893],[1117843200000,4.04459],[1117929600000,4.04459],[1118016000000,4.04459],[1118102400000,4.04954],[1118188800000,4.05807],[1118275200000,4.0622],[1118361600000,4.03234],[1118448000000,4.02773],[1118534400000,4.02773],[1118620800000,4.02773],[1118707200000,3.96472],[1118793600000,3.97584],[1118880000000,3.9647],[1118966400000,null],[1119052800000,3.98645],[1119139200000,3.98645],[1119225600000,3.98645],[1119312000000,null],[1119398400000,3.96273],[1119484800000,3.9705],[1119571200000,3.96294],[1119657600000,3.96279],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,3.93853]], 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: [[1117584000000, 4.050973],[1117584000000, 4.050973],[1117670400000, 4.037396],[1117756800000, 4.038928],[1117843200000, 4.044592],[1117929600000, 4.044592],[1118016000000, 4.044592],[1118102400000, 4.049544],[1118188800000, 4.058072],[1118275200000, 4.062195],[1118361600000, 4.032337],[1118448000000, 4.027730],[1118534400000, 4.027730],[1118620800000, 4.027730],[1118707200000, 3.964719],[1118793600000, 3.975843],[1118880000000, 3.964699],[1119052800000, 3.986447],[1119139200000, 3.986447],[1119225600000, 3.986447],[1119398400000, 3.962727],[1119484800000, 3.970498],[1119571200000, 3.962941],[1119657600000, 3.962789],[1120089600000, 3.938528]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });