$(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: [[1283299200000,14.0989],[1283385600000,14.2352],[1283472000000,14.2845],[1283558400000,14.3252],[1283644800000,14.3252],[1283731200000,14.3252],[1283817600000,14.3536],[1283904000000,14.2107],[1283990400000,14.1623],[1284076800000,14.1863],[1284163200000,14.1975],[1284249600000,14.1975],[1284336000000,14.1975],[1284422400000,14.2823],[1284508800000,14.3551],[1284595200000,14.5081],[1284681600000,14.6158],[1284768000000,14.5936],[1284854400000,14.5936],[1284940800000,14.5936],[1285027200000,14.601],[1285113600000,14.6482],[1285200000000,14.9164],[1285286400000,14.8692],[1285372800000,14.9515],[1285459200000,14.9515],[1285545600000,14.9515],[1285632000000,15.0296],[1285718400000,15.0064],[1285804800000,15.1876]], 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: [[1283299200000, 14.098880],[1283299200000, 14.098880],[1283385600000, 14.235239],[1283472000000, 14.284465],[1283558400000, 14.325171],[1283644800000, 14.325171],[1283731200000, 14.325171],[1283817600000, 14.353612],[1283904000000, 14.210674],[1283990400000, 14.162259],[1284076800000, 14.186338],[1284163200000, 14.197495],[1284249600000, 14.197495],[1284336000000, 14.197495],[1284422400000, 14.282290],[1284508800000, 14.355089],[1284595200000, 14.508108],[1284681600000, 14.615763],[1284768000000, 14.593587],[1284854400000, 14.593587],[1284940800000, 14.593587],[1285027200000, 14.600990],[1285113600000, 14.648231],[1285200000000, 14.916447],[1285286400000, 14.869242],[1285372800000, 14.951497],[1285459200000, 14.951497],[1285545600000, 14.951497],[1285632000000, 15.029628],[1285718400000, 15.006440],[1285804800000, 15.187627]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });