$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1270080000000,7.80457],[1270166400000,7.83541],[1270252800000,7.83541],[1270339200000,7.83541],[1270425600000,7.83541],[1270512000000,7.83541],[1270598400000,7.91791],[1270684800000,7.91056],[1270771200000,7.86068],[1270857600000,7.87823],[1270944000000,7.87823],[1271030400000,7.87823],[1271116800000,7.86685],[1271203200000,7.89897],[1271289600000,7.952],[1271376000000,7.93048],[1271462400000,7.90711],[1271548800000,7.90711],[1271635200000,7.90711],[1271721600000,7.78221],[1271808000000,7.82178],[1271894400000,7.94859],[1271980800000,7.92461],[1272067200000,7.91035],[1272153600000,7.91035],[1272240000000,7.91035],[1272326400000,7.93265],[1272412800000,7.89619],[1272499200000,7.83305],[1272585600000,7.90443]], 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: [[1270080000000, 7.804565],[1270080000000, 7.804565],[1270166400000, 7.835406],[1270252800000, 7.835406],[1270339200000, 7.835406],[1270425600000, 7.835406],[1270512000000, 7.835406],[1270598400000, 7.917907],[1270684800000, 7.910561],[1270771200000, 7.860676],[1270857600000, 7.878232],[1270944000000, 7.878232],[1271030400000, 7.878232],[1271116800000, 7.866854],[1271203200000, 7.898968],[1271289600000, 7.951999],[1271376000000, 7.930484],[1271462400000, 7.907106],[1271548800000, 7.907106],[1271635200000, 7.907106],[1271721600000, 7.782214],[1271808000000, 7.821781],[1271894400000, 7.948586],[1271980800000, 7.924612],[1272067200000, 7.910349],[1272153600000, 7.910349],[1272240000000, 7.910349],[1272326400000, 7.932650],[1272412800000, 7.896193],[1272499200000, 7.833051],[1272585600000, 7.904434]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });