$(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: [[1296518400000,2.78649],[1296604800000,2.78649],[1296691200000,2.78656],[1296777600000,2.78726],[1296864000000,2.78796],[1296950400000,2.78796],[1297036800000,2.78796],[1297123200000,2.78772],[1297209600000,2.78772],[1297296000000,2.78702],[1297382400000,2.7874],[1297468800000,2.78719],[1297555200000,2.78719],[1297641600000,2.78719],[1297728000000,2.78719],[1297814400000,2.78719],[1297900800000,2.78656],[1297987200000,2.78656],[1298073600000,2.78656],[1298160000000,2.78656],[1298246400000,2.78656],[1298332800000,2.786],[1298419200000,2.78519],[1298505600000,2.7834],[1298592000000,2.78305],[1298678400000,2.7827],[1298764800000,2.7827],[1298851200000,2.7827]], 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: [[1296518400000, 2.786491],[1296518400000, 2.786491],[1296604800000, 2.786491],[1296691200000, 2.786561],[1296777600000, 2.787263],[1296864000000, 2.787965],[1296950400000, 2.787965],[1297036800000, 2.787965],[1297123200000, 2.787719],[1297209600000, 2.787719],[1297296000000, 2.787018],[1297382400000, 2.787404],[1297468800000, 2.787193],[1297555200000, 2.787193],[1297641600000, 2.787193],[1297728000000, 2.787193],[1297814400000, 2.787193],[1297900800000, 2.786561],[1297987200000, 2.786561],[1298073600000, 2.786561],[1298160000000, 2.786561],[1298246400000, 2.786561],[1298332800000, 2.786000],[1298419200000, 2.785193],[1298505600000, 2.783404],[1298592000000, 2.783053],[1298678400000, 2.782702],[1298764800000, 2.782702],[1298851200000, 2.782702]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });