$(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: [[1354320000000,12.2677],[1354406400000,12.2677],[1354492800000,12.2677],[1354579200000,12.2815],[1354665600000,12.3084],[1354752000000,12.3045],[1354838400000,12.2952],[1354924800000,12.243],[1355011200000,12.243],[1355097600000,12.243],[1355184000000,12.2411],[1355270400000,12.2686],[1355356800000,12.2792],[1355443200000,12.2824],[1355529600000,12.2849],[1355616000000,12.2849],[1355702400000,12.2849],[1355788800000,12.3147],[1355875200000,12.3223],[1355961600000,12.3535],[1356048000000,12.3511],[1356134400000,12.3287],[1356220800000,12.3287],[1356307200000,12.3287],[1356393600000,12.3287],[1356480000000,12.3287],[1356566400000,12.3287],[1356652800000,12.3211],[1356739200000,12.2846],[1356825600000,12.2846],[1356912000000,12.2846]], 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: [[1354320000000, 12.267745],[1354320000000, 12.267745],[1354406400000, 12.267745],[1354492800000, 12.267745],[1354579200000, 12.281543],[1354665600000, 12.308436],[1354752000000, 12.304495],[1354838400000, 12.295240],[1354924800000, 12.242997],[1355011200000, 12.242997],[1355097600000, 12.242997],[1355184000000, 12.241085],[1355270400000, 12.268649],[1355356800000, 12.279222],[1355443200000, 12.282411],[1355529600000, 12.284922],[1355616000000, 12.284922],[1355702400000, 12.284922],[1355788800000, 12.314732],[1355875200000, 12.322250],[1355961600000, 12.353483],[1356048000000, 12.351116],[1356134400000, 12.328731],[1356220800000, 12.328731],[1356307200000, 12.328731],[1356393600000, 12.328731],[1356480000000, 12.328731],[1356566400000, 12.328731],[1356652800000, 12.321072],[1356739200000, 12.284601],[1356825600000, 12.284601],[1356912000000, 12.284601]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });