$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1330560000000,12.4275],[1330646400000,12.3805],[1330732800000,12.3397],[1330819200000,12.3397],[1330905600000,12.3397],[1330992000000,12.3198],[1331078400000,12.3008],[1331164800000,12.3016],[1331251200000,12.3016],[1331337600000,12.3016],[1331424000000,12.3016],[1331510400000,12.3016],[1331596800000,12.2639],[1331683200000,12.253],[1331769600000,12.2303],[1331856000000,12.2262],[1331942400000,12.233],[1332028800000,12.233],[1332115200000,12.233],[1332201600000,12.2825],[1332288000000,12.2794],[1332374400000,12.295],[1332460800000,12.284],[1332547200000,12.3126],[1332633600000,12.3126],[1332720000000,12.3126],[1332806400000,12.3152],[1332892800000,12.3622],[1332979200000,12.354],[1333065600000,12.34],[1333152000000,12.3739]], 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: [[1330560000000, 12.427489],[1330560000000, 12.427489],[1330646400000, 12.380484],[1330732800000, 12.339672],[1330819200000, 12.339672],[1330905600000, 12.339672],[1330992000000, 12.319822],[1331078400000, 12.300812],[1331164800000, 12.301558],[1331251200000, 12.301558],[1331337600000, 12.301558],[1331424000000, 12.301558],[1331510400000, 12.301558],[1331596800000, 12.263909],[1331683200000, 12.253021],[1331769600000, 12.230298],[1331856000000, 12.226234],[1331942400000, 12.232973],[1332028800000, 12.232973],[1332115200000, 12.232973],[1332201600000, 12.282537],[1332288000000, 12.279364],[1332374400000, 12.295000],[1332460800000, 12.283973],[1332547200000, 12.312629],[1332633600000, 12.312629],[1332720000000, 12.312629],[1332806400000, 12.315237],[1332892800000, 12.362224],[1332979200000, 12.354020],[1333065600000, 12.340027],[1333152000000, 12.373943]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });