$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1062374400000,0.17478],[1062460800000,0.17449],[1062547200000,0.17421],[1062633600000,0.17401],[1062720000000,0.17375],[1062806400000,0.17375],[1062892800000,0.17375],[1062979200000,0.17366],[1063065600000,0.174],[1063152000000,0.17406],[1063238400000,0.17391],[1063324800000,0.1739],[1063411200000,0.1739],[1063497600000,0.1739],[1063584000000,0.17366],[1063670400000,0.17366],[1063756800000,0.17378],[1063843200000,0.17378],[1063929600000,0.17447],[1064016000000,0.17447],[1064102400000,0.17447],[1064188800000,0.17486],[1064275200000,0.17486],[1064361600000,null],[1064448000000,null],[1064534400000,null],[1064620800000,null],[1064707200000,null],[1064793600000,0.17481],[1064880000000,0.17416]], 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: [[1062374400000, 0.174780],[1062374400000, 0.174780],[1062460800000, 0.174490],[1062547200000, 0.174210],[1062633600000, 0.174010],[1062720000000, 0.173750],[1062806400000, 0.173750],[1062892800000, 0.173750],[1062979200000, 0.173660],[1063065600000, 0.174000],[1063152000000, 0.174060],[1063238400000, 0.173910],[1063324800000, 0.173900],[1063411200000, 0.173900],[1063497600000, 0.173900],[1063584000000, 0.173660],[1063670400000, 0.173660],[1063756800000, 0.173780],[1063843200000, 0.173780],[1063929600000, 0.174470],[1064016000000, 0.174470],[1064102400000, 0.174470],[1064188800000, 0.174860],[1064275200000, 0.174860],[1064793600000, 0.174810],[1064880000000, 0.174160]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });