$(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: [[1233446400000,6.63595],[1233532800000,6.63595],[1233619200000,6.60651],[1233705600000,6.64098],[1233792000000,6.62585],[1233878400000,6.62131],[1233964800000,6.56336],[1234051200000,6.56336],[1234137600000,6.56336],[1234224000000,6.65084],[1234310400000,6.62943],[1234396800000,6.65393],[1234483200000,6.6385],[1234569600000,null],[1234656000000,null],[1234742400000,6.61289],[1234828800000,6.60421],[1234915200000,6.56733],[1235001600000,6.55687],[1235088000000,6.55599],[1235174400000,6.4976],[1235260800000,6.4976],[1235347200000,6.4976],[1235433600000,6.61018],[1235520000000,6.63797],[1235606400000,6.63534],[1235692800000,6.6286],[1235779200000,6.56012]], 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: [[1233446400000, 6.635949],[1233446400000, 6.635949],[1233532800000, 6.635949],[1233619200000, 6.606509],[1233705600000, 6.640979],[1233792000000, 6.625846],[1233878400000, 6.621308],[1233964800000, 6.563363],[1234051200000, 6.563363],[1234137600000, 6.563363],[1234224000000, 6.650837],[1234310400000, 6.629434],[1234396800000, 6.653927],[1234483200000, 6.638502],[1234742400000, 6.612893],[1234828800000, 6.604213],[1234915200000, 6.567326],[1235001600000, 6.556869],[1235088000000, 6.555991],[1235174400000, 6.497601],[1235260800000, 6.497601],[1235347200000, 6.497601],[1235433600000, 6.610182],[1235520000000, 6.637967],[1235606400000, 6.635338],[1235692800000, 6.628596],[1235779200000, 6.560124]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });