$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1051747200000,8.51769],[1051833600000,8.51769],[1051920000000,8.51769],[1052006400000,8.51769],[1052092800000,8.51769],[1052179200000,8.5522],[1052265600000,8.58933],[1052352000000,8.56669],[1052438400000,8.56669],[1052524800000,8.56669],[1052611200000,8.56669],[1052697600000,8.56669],[1052784000000,8.59374],[1052870400000,8.57315],[1052956800000,8.61553],[1053043200000,8.67487],[1053129600000,8.67487],[1053216000000,8.67487],[1053302400000,8.71302],[1053388800000,8.70948],[1053475200000,8.70948],[1053561600000,8.72578],[1053648000000,8.73158],[1053734400000,8.73158],[1053820800000,8.73158],[1053907200000,null],[1053993600000,8.73769],[1054080000000,8.77236],[1054166400000,8.7587],[1054252800000,8.76136],[1054339200000,8.76136]], 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: [[1051747200000, 8.517690],[1051747200000, 8.517690],[1051833600000, 8.517690],[1051920000000, 8.517690],[1052006400000, 8.517690],[1052092800000, 8.517690],[1052179200000, 8.552200],[1052265600000, 8.589330],[1052352000000, 8.566690],[1052438400000, 8.566690],[1052524800000, 8.566690],[1052611200000, 8.566690],[1052697600000, 8.566690],[1052784000000, 8.593740],[1052870400000, 8.573150],[1052956800000, 8.615530],[1053043200000, 8.674870],[1053129600000, 8.674870],[1053216000000, 8.674870],[1053302400000, 8.713020],[1053388800000, 8.709480],[1053475200000, 8.709480],[1053561600000, 8.725780],[1053648000000, 8.731580],[1053734400000, 8.731580],[1053820800000, 8.731580],[1053993600000, 8.737690],[1054080000000, 8.772360],[1054166400000, 8.758700],[1054252800000, 8.761360],[1054339200000, 8.761360]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });