$(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: [[1393632000000,11.0243],[1393718400000,11.0243],[1393804800000,11.0243],[1393891200000,11.3427],[1393977600000,10.9991],[1394064000000,10.6477],[1394150400000,10.5855],[1394236800000,10.5261],[1394323200000,10.5261],[1394409600000,10.5261],[1394496000000,10.5261],[1394582400000,10.5766],[1394668800000,10.6015],[1394755200000,10.8646],[1394841600000,10.9944],[1394928000000,10.9944],[1395014400000,10.9944],[1395100800000,11.1632],[1395187200000,11.3847],[1395273600000,11.341],[1395360000000,11.4129],[1395446400000,11.534],[1395532800000,11.534],[1395619200000,11.534],[1395705600000,11.7178],[1395792000000,11.9562],[1395878400000,12.048],[1395964800000,12.2489],[1396051200000,12.3686],[1396137600000,12.3686],[1396224000000,12.3686]], 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: [[1393632000000, 11.024258],[1393632000000, 11.024258],[1393718400000, 11.024258],[1393804800000, 11.024258],[1393891200000, 11.342680],[1393977600000, 10.999130],[1394064000000, 10.647653],[1394150400000, 10.585454],[1394236800000, 10.526093],[1394323200000, 10.526093],[1394409600000, 10.526093],[1394496000000, 10.526093],[1394582400000, 10.576622],[1394668800000, 10.601472],[1394755200000, 10.864556],[1394841600000, 10.994401],[1394928000000, 10.994401],[1395014400000, 10.994401],[1395100800000, 11.163243],[1395187200000, 11.384734],[1395273600000, 11.341033],[1395360000000, 11.412864],[1395446400000, 11.534048],[1395532800000, 11.534048],[1395619200000, 11.534048],[1395705600000, 11.717781],[1395792000000, 11.956195],[1395878400000, 12.048046],[1395964800000, 12.248876],[1396051200000, 12.368648],[1396137600000, 12.368648],[1396224000000, 12.368648]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });