$(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: [[1183248000000,9.74747],[1183334400000,9.74747],[1183420800000,9.85062],[1183507200000,9.86571],[1183593600000,9.87804],[1183680000000,9.89258],[1183766400000,9.83665],[1183852800000,9.83665],[1183939200000,9.83665],[1184025600000,9.85897],[1184112000000,9.89864],[1184198400000,9.97023],[1184284800000,9.98844],[1184371200000,9.98696],[1184457600000,9.98696],[1184544000000,9.98696],[1184630400000,9.97907],[1184716800000,9.97326],[1184803200000,9.98478],[1184889600000,10.0145],[1184976000000,9.98927],[1185062400000,9.98927],[1185148800000,9.98927],[1185235200000,10.0138],[1185321600000,10.021],[1185408000000,9.96298],[1185494400000,9.94348],[1185580800000,9.89345],[1185667200000,9.89345],[1185753600000,9.89345]], 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: [[1183248000000, 9.747472],[1183248000000, 9.747472],[1183334400000, 9.747472],[1183420800000, 9.850617],[1183507200000, 9.865707],[1183593600000, 9.878038],[1183680000000, 9.892575],[1183766400000, 9.836648],[1183852800000, 9.836648],[1183939200000, 9.836648],[1184025600000, 9.858972],[1184112000000, 9.898637],[1184198400000, 9.970234],[1184284800000, 9.988438],[1184371200000, 9.986957],[1184457600000, 9.986957],[1184544000000, 9.986957],[1184630400000, 9.979072],[1184716800000, 9.973261],[1184803200000, 9.984783],[1184889600000, 10.014493],[1184976000000, 9.989273],[1185062400000, 9.989273],[1185148800000, 9.989273],[1185235200000, 10.013780],[1185321600000, 10.021037],[1185408000000, 9.962984],[1185494400000, 9.943478],[1185580800000, 9.893449],[1185667200000, 9.893449],[1185753600000, 9.893449]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });