$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1170288000000,9.39504],[1170374400000,9.44156],[1170460800000,9.44291],[1170547200000,9.44291],[1170633600000,9.44291],[1170720000000,9.37132],[1170806400000,9.39442],[1170892800000,9.41763],[1170979200000,9.41917],[1171065600000,9.43078],[1171152000000,9.43078],[1171238400000,9.43078],[1171324800000,9.3938],[1171411200000,9.44165],[1171497600000,9.48243],[1171584000000,9.51957],[1171670400000,9.50652],[1171756800000,9.50652],[1171843200000,9.50652],[1171929600000,9.41061],[1172016000000,9.38398],[1172102400000,9.37602],[1172188800000,9.37867],[1172275200000,9.39206],[1172361600000,null],[1172448000000,9.39206],[1172534400000,9.41598],[1172620800000,9.48488]], 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, 9.395045],[1170288000000, 9.395045],[1170374400000, 9.441557],[1170460800000, 9.442913],[1170547200000, 9.442913],[1170633600000, 9.442913],[1170720000000, 9.371321],[1170806400000, 9.394421],[1170892800000, 9.417626],[1170979200000, 9.419174],[1171065600000, 9.430775],[1171152000000, 9.430775],[1171238400000, 9.430775],[1171324800000, 9.393798],[1171411200000, 9.441651],[1171497600000, 9.482431],[1171584000000, 9.519565],[1171670400000, 9.506522],[1171756800000, 9.506522],[1171843200000, 9.506522],[1171929600000, 9.410614],[1172016000000, 9.383977],[1172102400000, 9.376024],[1172188800000, 9.378674],[1172275200000, 9.392056],[1172448000000, 9.392056],[1172534400000, 9.415982],[1172620800000, 9.484881]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });