$(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: 'Курс EEK, грн'}, 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: 'Курс EEK', data: [[1177977600000,0.440333],[1178064000000,0.440333],[1178150400000,0.440333],[1178236800000,0.439365],[1178323200000,0.437686],[1178409600000,0.437686],[1178496000000,0.437686],[1178582400000,0.439429],[1178668800000,0.43759],[1178755200000,0.43759],[1178841600000,0.436589],[1178928000000,0.435266],[1179014400000,0.435266],[1179100800000,0.435266],[1179187200000,0.437299],[1179273600000,0.436944],[1179360000000,0.438106],[1179446400000,0.436234],[1179532800000,0.434975],[1179619200000,0.434975],[1179705600000,0.434975],[1179792000000,0.43391],[1179878400000,0.434233],[1179964800000,0.435395],[1180051200000,0.434039],[1180137600000,0.433813],[1180224000000,0.433813],[1180310400000,0.433813],[1180396800000,0.433813],[1180483200000,0.436008],[1180569600000,0.433136]], 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, 0.440333],[1177977600000, 0.440333],[1178064000000, 0.440333],[1178150400000, 0.440333],[1178236800000, 0.439365],[1178323200000, 0.437686],[1178409600000, 0.437686],[1178496000000, 0.437686],[1178582400000, 0.439429],[1178668800000, 0.437590],[1178755200000, 0.437590],[1178841600000, 0.436589],[1178928000000, 0.435266],[1179014400000, 0.435266],[1179100800000, 0.435266],[1179187200000, 0.437299],[1179273600000, 0.436944],[1179360000000, 0.438106],[1179446400000, 0.436234],[1179532800000, 0.434975],[1179619200000, 0.434975],[1179705600000, 0.434975],[1179792000000, 0.433910],[1179878400000, 0.434233],[1179964800000, 0.435395],[1180051200000, 0.434039],[1180137600000, 0.433813],[1180224000000, 0.433813],[1180310400000, 0.433813],[1180396800000, 0.433813],[1180483200000, 0.436008],[1180569600000, 0.433136]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });