$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1318032000000,1.25397],[1318118400000,1.25397],[1318204800000,1.25397],[1318291200000,1.25581],[1318377600000,1.25043],[1318464000000,1.25398],[1318550400000,1.25008],[1318636800000,1.24884],[1318723200000,1.24884],[1318809600000,1.24884],[1318896000000,1.25217],[1318982400000,1.24998],[1319068800000,1.25039],[1319155200000,1.24928],[1319241600000,1.24885],[1319328000000,1.24885],[1319414400000,1.24885],[1319500800000,1.25093],[1319587200000,1.25398],[1319673600000,1.25531],[1319760000000,1.25421]], 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: [[1318032000000, 1.253969],[1318032000000, 1.253969],[1318118400000, 1.253969],[1318204800000, 1.253969],[1318291200000, 1.255813],[1318377600000, 1.250427],[1318464000000, 1.253981],[1318550400000, 1.250085],[1318636800000, 1.248843],[1318723200000, 1.248843],[1318809600000, 1.248843],[1318896000000, 1.252174],[1318982400000, 1.249979],[1319068800000, 1.250388],[1319155200000, 1.249282],[1319241600000, 1.248851],[1319328000000, 1.248851],[1319414400000, 1.248851],[1319500800000, 1.250934],[1319587200000, 1.253985],[1319673600000, 1.255306],[1319760000000, 1.254213]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });