$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1380585600000,8.8299],[1380672000000,8.84168],[1380758400000,8.82488],[1380844800000,8.85116],[1380931200000,8.85412],[1381017600000,8.85412],[1381104000000,8.85412],[1381190400000,8.84693],[1381276800000,8.83368],[1381363200000,8.77328],[1381449600000,8.77328],[1381536000000,8.80567],[1381622400000,8.80567],[1381708800000,8.80567],[1381795200000,8.7901],[1381881600000,8.72499],[1381968000000,8.78317],[1382054400000,8.85863],[1382140800000,8.8614],[1382227200000,8.8614],[1382313600000,8.8614],[1382400000000,8.84394],[1382486400000,8.84632],[1382572800000,8.93148],[1382659200000,8.96882],[1382745600000,8.91801],[1382832000000,8.91801],[1382918400000,8.91801],[1383004800000,8.92615],[1383091200000,8.90497],[1383177600000,8.90449]], 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: [[1380585600000, 8.829895],[1380585600000, 8.829895],[1380672000000, 8.841681],[1380758400000, 8.824883],[1380844800000, 8.851160],[1380931200000, 8.854115],[1381017600000, 8.854115],[1381104000000, 8.854115],[1381190400000, 8.846925],[1381276800000, 8.833683],[1381363200000, 8.773280],[1381449600000, 8.773280],[1381536000000, 8.805671],[1381622400000, 8.805671],[1381708800000, 8.805671],[1381795200000, 8.790097],[1381881600000, 8.724986],[1381968000000, 8.783168],[1382054400000, 8.858633],[1382140800000, 8.861396],[1382227200000, 8.861396],[1382313600000, 8.861396],[1382400000000, 8.843939],[1382486400000, 8.846320],[1382572800000, 8.931481],[1382659200000, 8.968818],[1382745600000, 8.918008],[1382832000000, 8.918008],[1382918400000, 8.918008],[1383004800000, 8.926153],[1383091200000, 8.904970],[1383177600000, 8.904488]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });