$(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: [[1264982400000,15.7632],[1265068800000,15.704],[1265155200000,15.7333],[1265241600000,15.7834],[1265328000000,15.6244],[1265414400000,15.4555],[1265500800000,15.4555],[1265587200000,15.4555],[1265673600000,15.4488],[1265760000000,15.5398],[1265846400000,15.5207],[1265932800000,15.4893],[1266019200000,15.3166],[1266105600000,15.3166],[1266192000000,15.3166],[1266278400000,15.3681],[1266364800000,15.4142],[1266451200000,15.488],[1266537600000,15.3077],[1266624000000,15.246],[1266710400000,15.246],[1266796800000,15.246],[1266883200000,15.3498],[1266969600000,15.294],[1267056000000,15.2602],[1267142400000,15.1949],[1267228800000,15.2883],[1267315200000,15.2883]], 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: [[1264982400000, 15.763233],[1264982400000, 15.763233],[1265068800000, 15.704002],[1265155200000, 15.733255],[1265241600000, 15.783436],[1265328000000, 15.624399],[1265414400000, 15.455549],[1265500800000, 15.455549],[1265587200000, 15.455549],[1265673600000, 15.448814],[1265760000000, 15.539759],[1265846400000, 15.520716],[1265932800000, 15.489312],[1266019200000, 15.316589],[1266105600000, 15.316589],[1266192000000, 15.316589],[1266278400000, 15.368132],[1266364800000, 15.414163],[1266451200000, 15.488007],[1266537600000, 15.307748],[1266624000000, 15.246047],[1266710400000, 15.246047],[1266796800000, 15.246047],[1266883200000, 15.349757],[1266969600000, 15.293984],[1267056000000, 15.260190],[1267142400000, 15.194855],[1267228800000, 15.288254],[1267315200000, 15.288254]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });