$(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: [[1427846400000,0.40679],[1427932800000,0.40241],[1428019200000,0.41252],[1428105600000,0.41063],[1428192000000,0.41063],[1428278400000,0.41063],[1428364800000,0.41488],[1428451200000,0.42481],[1428537600000,0.43516],[1428624000000,0.44603],[1428710400000,0.44807],[1428796800000,0.44807],[1428883200000,0.44807],[1428969600000,0.44807],[1429056000000,0.44111],[1429142400000,0.43132],[1429228800000,0.43172],[1429315200000,0.41674],[1429401600000,0.41674],[1429488000000,0.41674],[1429574400000,0.43195],[1429660800000,0.41273],[1429747200000,0.42013],[1429833600000,0.43664],[1429920000000,0.44682],[1430006400000,0.44682],[1430092800000,0.44682],[1430179200000,0.4449],[1430265600000,0.42563],[1430352000000,0.40707]], 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: [[1427846400000, 0.406790],[1427846400000, 0.406790],[1427932800000, 0.402410],[1428019200000, 0.412520],[1428105600000, 0.410630],[1428192000000, 0.410630],[1428278400000, 0.410630],[1428364800000, 0.414880],[1428451200000, 0.424810],[1428537600000, 0.435160],[1428624000000, 0.446030],[1428710400000, 0.448070],[1428796800000, 0.448070],[1428883200000, 0.448070],[1428969600000, 0.448070],[1429056000000, 0.441110],[1429142400000, 0.431320],[1429228800000, 0.431720],[1429315200000, 0.416740],[1429401600000, 0.416740],[1429488000000, 0.416740],[1429574400000, 0.431950],[1429660800000, 0.412730],[1429747200000, 0.420130],[1429833600000, 0.436640],[1429920000000, 0.446820],[1430006400000, 0.446820],[1430092800000, 0.446820],[1430179200000, 0.444900],[1430265600000, 0.425630],[1430352000000, 0.407070]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });