$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1296518400000,8.43496],[1296604800000,8.43256],[1296691200000,8.48315],[1296777600000,8.40734],[1296864000000,8.36096],[1296950400000,8.36096],[1297036800000,8.36096],[1297123200000,8.31302],[1297209600000,8.3139],[1297296000000,8.24195],[1297382400000,8.24659],[1297468800000,8.16135],[1297555200000,8.16135],[1297641600000,8.16135],[1297728000000,8.1715],[1297814400000,8.17713],[1297900800000,8.20717],[1297987200000,8.30105],[1298073600000,8.34206],[1298160000000,8.34206],[1298246400000,8.34206],[1298332800000,8.37387],[1298419200000,8.44643],[1298505600000,8.47459],[1298592000000,8.56945],[1298678400000,8.52741],[1298764800000,8.52741],[1298851200000,8.52741]], 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, 8.434956],[1296518400000, 8.434956],[1296604800000, 8.432556],[1296691200000, 8.483152],[1296777600000, 8.407342],[1296864000000, 8.360957],[1296950400000, 8.360957],[1297036800000, 8.360957],[1297123200000, 8.313023],[1297209600000, 8.313897],[1297296000000, 8.241950],[1297382400000, 8.246588],[1297468800000, 8.161353],[1297555200000, 8.161353],[1297641600000, 8.161353],[1297728000000, 8.171499],[1297814400000, 8.177132],[1297900800000, 8.207173],[1297987200000, 8.301045],[1298073600000, 8.342060],[1298160000000, 8.342060],[1298246400000, 8.342060],[1298332800000, 8.373865],[1298419200000, 8.446427],[1298505600000, 8.474590],[1298592000000, 8.569447],[1298678400000, 8.527408],[1298764800000, 8.527408],[1298851200000, 8.527408]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });