$(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: [[1233446400000,6.20844],[1233532800000,6.20844],[1233619200000,6.19886],[1233705600000,6.16125],[1233792000000,6.19655],[1233878400000,6.24934],[1233964800000,6.15769],[1234051200000,6.15769],[1234137600000,6.15769],[1234224000000,6.27225],[1234310400000,6.29307],[1234396800000,6.17317],[1234483200000,6.1782],[1234569600000,null],[1234656000000,null],[1234742400000,6.23616],[1234828800000,6.17713],[1234915200000,6.09573],[1235001600000,6.10686],[1235088000000,6.16514],[1235174400000,6.09331],[1235260800000,6.09331],[1235347200000,6.09331],[1235433600000,6.15865],[1235520000000,6.14373],[1235606400000,6.17806],[1235692800000,6.19587],[1235779200000,6.09063]], 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: [[1233446400000, 6.208443],[1233446400000, 6.208443],[1233532800000, 6.208443],[1233619200000, 6.198864],[1233705600000, 6.161247],[1233792000000, 6.196547],[1233878400000, 6.249339],[1233964800000, 6.157690],[1234051200000, 6.157690],[1234137600000, 6.157690],[1234224000000, 6.272252],[1234310400000, 6.293073],[1234396800000, 6.173169],[1234483200000, 6.178198],[1234742400000, 6.236159],[1234828800000, 6.177130],[1234915200000, 6.095733],[1235001600000, 6.106863],[1235088000000, 6.165144],[1235174400000, 6.093313],[1235260800000, 6.093313],[1235347200000, 6.093313],[1235433600000, 6.158653],[1235520000000, 6.143730],[1235606400000, 6.178059],[1235692800000, 6.195870],[1235779200000, 6.090635]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });