$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[970358400000,5.4397],[970444800000,5.4397],[970531200000,5.44],[970617600000,5.44],[970704000000,5.44],[970790400000,5.44],[970876800000,5.44],[970963200000,5.44],[971049600000,5.44],[971136000000,5.44],[971222400000,5.44],[971308800000,5.44],[971395200000,5.44],[971481600000,5.439],[971568000000,5.439],[971654400000,5.439],[971740800000,5.439],[971827200000,5.4386],[971913600000,5.4383],[972000000000,5.4379],[972086400000,5.4376],[972172800000,5.4376],[972259200000,5.4376],[972345600000,5.4373],[972432000000,5.4373],[972518400000,5.4373],[972604800000,5.4371],[972691200000,5.4371],[972777600000,5.4371],[972864000000,5.4371],[972950400000,5.4369]], 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: [[970358400000, 5.439700],[970358400000, 5.439700],[970444800000, 5.439700],[970531200000, 5.440000],[970617600000, 5.440000],[970704000000, 5.440000],[970790400000, 5.440000],[970876800000, 5.440000],[970963200000, 5.440000],[971049600000, 5.440000],[971136000000, 5.440000],[971222400000, 5.440000],[971308800000, 5.440000],[971395200000, 5.440000],[971481600000, 5.439000],[971568000000, 5.439000],[971654400000, 5.439000],[971740800000, 5.439000],[971827200000, 5.438600],[971913600000, 5.438300],[972000000000, 5.437900],[972086400000, 5.437600],[972172800000, 5.437600],[972259200000, 5.437600],[972345600000, 5.437300],[972432000000, 5.437300],[972518400000, 5.437300],[972604800000, 5.437100],[972691200000, 5.437100],[972777600000, 5.437100],[972864000000, 5.437100],[972950400000, 5.436900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });