$(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: [[1133395200000,4.32526],[1133481600000,4.3221],[1133568000000,4.33954],[1133654400000,4.33954],[1133740800000,4.33954],[1133827200000,4.36968],[1133913600000,4.37305],[1134000000000,4.3399],[1134086400000,4.34366],[1134172800000,4.35523],[1134259200000,4.35523],[1134345600000,4.35523],[1134432000000,4.38068],[1134518400000,4.38323],[1134604800000,4.40629],[1134691200000,4.36312],[1134777600000,4.3661],[1134864000000,4.3661],[1134950400000,4.3661],[1135036800000,4.34136],[1135123200000,4.30619],[1135209600000,4.30763],[1135296000000,4.32648],[1135382400000,4.32654],[1135468800000,4.32654],[1135555200000,4.32654],[1135641600000,4.32654],[1135728000000,4.32711],[1135814400000,4.3143],[1135900800000,4.32852]], 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: [[1133395200000, 4.325264],[1133395200000, 4.325264],[1133481600000, 4.322105],[1133568000000, 4.339542],[1133654400000, 4.339542],[1133740800000, 4.339542],[1133827200000, 4.369685],[1133913600000, 4.373054],[1134000000000, 4.339902],[1134086400000, 4.343657],[1134172800000, 4.355232],[1134259200000, 4.355232],[1134345600000, 4.355232],[1134432000000, 4.380683],[1134518400000, 4.383234],[1134604800000, 4.406286],[1134691200000, 4.363116],[1134777600000, 4.366100],[1134864000000, 4.366100],[1134950400000, 4.366100],[1135036800000, 4.341362],[1135123200000, 4.306188],[1135209600000, 4.307630],[1135296000000, 4.326480],[1135382400000, 4.326539],[1135468800000, 4.326539],[1135555200000, 4.326539],[1135641600000, 4.326539],[1135728000000, 4.327111],[1135814400000, 4.314296],[1135900800000, 4.328519]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });