$(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: [[1177977600000,4.19312],[1178064000000,4.19312],[1178150400000,4.19312],[1178236800000,4.17171],[1178323200000,4.15578],[1178409600000,4.15578],[1178496000000,4.15578],[1178582400000,4.17435],[1178668800000,4.15234],[1178755200000,4.15234],[1178841600000,4.14687],[1178928000000,4.14285],[1179014400000,4.14285],[1179100800000,4.14285],[1179187200000,4.14305],[1179273600000,4.14219],[1179360000000,4.14317],[1179446400000,4.12297],[1179532800000,4.1158],[1179619200000,4.1158],[1179705600000,4.1158],[1179792000000,4.09927],[1179878400000,4.10257],[1179964800000,4.11952],[1180051200000,4.11391],[1180137600000,4.11401],[1180224000000,4.11401],[1180310400000,4.11401],[1180396800000,4.11401],[1180483200000,4.13357],[1180569600000,4.11556]], 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: [[1177977600000, 4.193120],[1177977600000, 4.193120],[1178064000000, 4.193120],[1178150400000, 4.193120],[1178236800000, 4.171712],[1178323200000, 4.155777],[1178409600000, 4.155777],[1178496000000, 4.155777],[1178582400000, 4.174352],[1178668800000, 4.152338],[1178755200000, 4.152338],[1178841600000, 4.146868],[1178928000000, 4.142849],[1179014400000, 4.142849],[1179100800000, 4.142849],[1179187200000, 4.143049],[1179273600000, 4.142193],[1179360000000, 4.143167],[1179446400000, 4.122972],[1179532800000, 4.115799],[1179619200000, 4.115799],[1179705600000, 4.115799],[1179792000000, 4.099275],[1179878400000, 4.102572],[1179964800000, 4.119520],[1180051200000, 4.113908],[1180137600000, 4.114010],[1180224000000, 4.114010],[1180310400000, 4.114010],[1180396800000, 4.114010],[1180483200000, 4.133571],[1180569600000, 4.115564]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });