$(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: [[986083200000,0.18856],[986169600000,0.18856],[986256000000,0.18838],[986342400000,0.18782],[986428800000,0.18782],[986515200000,0.18782],[986601600000,0.1878],[986688000000,0.1878],[986774400000,0.1878],[986860800000,0.18792],[986947200000,0.18823],[987033600000,0.1877],[987120000000,0.18774],[987206400000,0.18799],[987292800000,0.18799],[987379200000,0.18799],[987465600000,0.18799],[987552000000,0.18777],[987638400000,0.18777],[987724800000,0.18746],[987811200000,0.18757],[987897600000,null],[987984000000,0.18757],[988070400000,0.18782],[988156800000,0.18775],[988243200000,0.18742],[988329600000,0.18767],[988416000000,0.18785],[988502400000,0.18785],[988588800000,0.18785]], 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: [[986083200000, 0.188560],[986083200000, 0.188560],[986169600000, 0.188560],[986256000000, 0.188380],[986342400000, 0.187820],[986428800000, 0.187820],[986515200000, 0.187820],[986601600000, 0.187800],[986688000000, 0.187800],[986774400000, 0.187800],[986860800000, 0.187920],[986947200000, 0.188230],[987033600000, 0.187700],[987120000000, 0.187740],[987206400000, 0.187990],[987292800000, 0.187990],[987379200000, 0.187990],[987465600000, 0.187990],[987552000000, 0.187770],[987638400000, 0.187770],[987724800000, 0.187460],[987811200000, 0.187570],[987984000000, 0.187570],[988070400000, 0.187820],[988156800000, 0.187750],[988243200000, 0.187420],[988329600000, 0.187670],[988416000000, 0.187850],[988502400000, 0.187850],[988588800000, 0.187850]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });