$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1341100800000,2.34577],[1341187200000,2.34577],[1341273600000,2.38478],[1341360000000,2.38731],[1341446400000,2.38639],[1341532800000,2.36126],[1341619200000,2.34754],[1341705600000,2.34769],[1341792000000,2.34769],[1341878400000,2.32107],[1341964800000,2.33895],[1342051200000,2.35015],[1342137600000,2.31313],[1342224000000,2.3127],[1342310400000,2.3127],[1342396800000,2.3127],[1342483200000,2.32604],[1342569600000,2.35372],[1342656000000,2.33967],[1342742400000,2.36172],[1342828800000,2.34264],[1342915200000,2.34264],[1343001600000,2.34264],[1343088000000,2.30545],[1343174400000,2.29339],[1343260800000,2.31274],[1343347200000,2.36096],[1343433600000,2.38522],[1343520000000,2.38522],[1343606400000,2.38522],[1343692800000,2.37538]], 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: [[1341100800000, 2.345770],[1341100800000, 2.345770],[1341187200000, 2.345770],[1341273600000, 2.384778],[1341360000000, 2.387308],[1341446400000, 2.386388],[1341532800000, 2.361265],[1341619200000, 2.347544],[1341705600000, 2.347691],[1341792000000, 2.347691],[1341878400000, 2.321072],[1341964800000, 2.338955],[1342051200000, 2.350149],[1342137600000, 2.313128],[1342224000000, 2.312699],[1342310400000, 2.312699],[1342396800000, 2.312699],[1342483200000, 2.326039],[1342569600000, 2.353723],[1342656000000, 2.339667],[1342742400000, 2.361725],[1342828800000, 2.342637],[1342915200000, 2.342637],[1343001600000, 2.342637],[1343088000000, 2.305453],[1343174400000, 2.293389],[1343260800000, 2.312740],[1343347200000, 2.360964],[1343433600000, 2.385216],[1343520000000, 2.385216],[1343606400000, 2.385216],[1343692800000, 2.375380]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });