$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1283299200000,2.76726],[1283385600000,2.76705],[1283472000000,2.77116],[1283558400000,2.77481],[1283644800000,2.77481],[1283731200000,2.77481],[1283817600000,2.77481],[1283904000000,2.77481],[1283990400000,2.77481],[1284076800000,2.77481],[1284163200000,2.77481],[1284249600000,2.77481],[1284336000000,2.77481],[1284422400000,2.77481],[1284508800000,2.77832],[1284595200000,2.77867],[1284681600000,2.77867],[1284768000000,2.77867],[1284854400000,2.77867],[1284940800000,2.77867],[1285027200000,2.77867],[1285113600000,2.77867],[1285200000000,2.77867],[1285286400000,2.77761],[1285372800000,2.77523],[1285459200000,2.77523],[1285545600000,2.77523],[1285632000000,2.77667],[1285718400000,2.77667],[1285804800000,2.77667]], 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, 2.767263],[1283299200000, 2.767263],[1283385600000, 2.767053],[1283472000000, 2.771158],[1283558400000, 2.774807],[1283644800000, 2.774807],[1283731200000, 2.774807],[1283817600000, 2.774807],[1283904000000, 2.774807],[1283990400000, 2.774807],[1284076800000, 2.774807],[1284163200000, 2.774807],[1284249600000, 2.774807],[1284336000000, 2.774807],[1284422400000, 2.774807],[1284508800000, 2.778316],[1284595200000, 2.778667],[1284681600000, 2.778667],[1284768000000, 2.778667],[1284854400000, 2.778667],[1284940800000, 2.778667],[1285027200000, 2.778667],[1285113600000, 2.778667],[1285200000000, 2.778667],[1285286400000, 2.777614],[1285372800000, 2.775228],[1285459200000, 2.775228],[1285545600000, 2.775228],[1285632000000, 2.776667],[1285718400000, 2.776667],[1285804800000, 2.776667]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });