$(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: [[1164931200000,4.42835],[1165017600000,4.41787],[1165104000000,4.41787],[1165190400000,4.41787],[1165276800000,4.41941],[1165363200000,4.42788],[1165449600000,4.41679],[1165536000000,4.39606],[1165622400000,4.39084],[1165708800000,4.39084],[1165795200000,4.39084],[1165881600000,4.39669],[1165968000000,4.38687],[1166054400000,4.38606],[1166140800000,4.37079],[1166227200000,4.36838],[1166313600000,4.36838],[1166400000000,4.36838],[1166486400000,4.3754],[1166572800000,4.36669],[1166659200000,4.40478],[1166745600000,4.39122],[1166832000000,4.37136],[1166918400000,4.37136],[1167004800000,4.37136],[1167091200000,4.37136],[1167177600000,4.37136],[1167264000000,4.34418],[1167350400000,4.35706],[1167436800000,4.35237]], 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: [[1164931200000, 4.428353],[1164931200000, 4.428353],[1165017600000, 4.417874],[1165104000000, 4.417874],[1165190400000, 4.417874],[1165276800000, 4.419414],[1165363200000, 4.427884],[1165449600000, 4.416795],[1165536000000, 4.396062],[1165622400000, 4.390844],[1165708800000, 4.390844],[1165795200000, 4.390844],[1165881600000, 4.396686],[1165968000000, 4.386869],[1166054400000, 4.386057],[1166140800000, 4.370791],[1166227200000, 4.368378],[1166313600000, 4.368378],[1166400000000, 4.368378],[1166486400000, 4.375397],[1166572800000, 4.366689],[1166659200000, 4.404780],[1166745600000, 4.391217],[1166832000000, 4.371365],[1166918400000, 4.371365],[1167004800000, 4.371365],[1167091200000, 4.371365],[1167177600000, 4.371365],[1167264000000, 4.344182],[1167350400000, 4.357064],[1167436800000, 4.352366]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });