$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1393632000000,7.66157],[1393718400000,7.66157],[1393804800000,7.66157],[1393891200000,7.87901],[1393977600000,7.66394],[1394064000000,7.44718],[1394150400000,7.42614],[1394236800000,7.31105],[1394323200000,7.31105],[1394409600000,7.31105],[1394496000000,7.31105],[1394582400000,7.33776],[1394668800000,7.3228],[1394755200000,7.49492],[1394841600000,7.58701],[1394928000000,7.58701],[1395014400000,7.58701],[1395100800000,7.71161],[1395187200000,7.87472],[1395273600000,7.83346],[1395360000000,7.9164],[1395446400000,7.99839],[1395532800000,7.99839],[1395619200000,7.99839],[1395705600000,8.1595],[1395792000000,8.33217],[1395878400000,8.42033],[1395964800000,8.57816],[1396051200000,8.68979],[1396137600000,8.68979],[1396224000000,8.68979]], 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, 7.661566],[1393632000000, 7.661566],[1393718400000, 7.661566],[1393804800000, 7.661566],[1393891200000, 7.879008],[1393977600000, 7.663942],[1394064000000, 7.447184],[1394150400000, 7.426144],[1394236800000, 7.311053],[1394323200000, 7.311053],[1394409600000, 7.311053],[1394496000000, 7.311053],[1394582400000, 7.337761],[1394668800000, 7.322803],[1394755200000, 7.494922],[1394841600000, 7.587007],[1394928000000, 7.587007],[1395014400000, 7.587007],[1395100800000, 7.711610],[1395187200000, 7.874716],[1395273600000, 7.833457],[1395360000000, 7.916400],[1395446400000, 7.998393],[1395532800000, 7.998393],[1395619200000, 7.998393],[1395705600000, 8.159499],[1395792000000, 8.332174],[1395878400000, 8.420329],[1395964800000, 8.578155],[1396051200000, 8.689786],[1396137600000, 8.689786],[1396224000000, 8.689786]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });