$(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: [[1275350400000,1.16069],[1275436800000,1.1603],[1275523200000,1.16042],[1275609600000,1.16068],[1275696000000,1.15999],[1275782400000,1.15999],[1275868800000,1.15999],[1275955200000,1.15937],[1276041600000,1.15959],[1276128000000,1.15964],[1276214400000,1.159],[1276300800000,1.15859],[1276387200000,1.15859],[1276473600000,1.15859],[1276560000000,1.15845],[1276646400000,1.15822],[1276732800000,1.15816],[1276819200000,1.15863],[1276905600000,1.15905],[1276992000000,1.15905],[1277078400000,1.15905],[1277164800000,1.16375],[1277251200000,1.16097],[1277337600000,1.16109],[1277424000000,1.1632],[1277510400000,1.16457],[1277596800000,1.16457],[1277683200000,1.16457],[1277769600000,1.16457],[1277856000000,1.16319]], 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: [[1275350400000, 1.160693],[1275350400000, 1.160693],[1275436800000, 1.160304],[1275523200000, 1.160423],[1275609600000, 1.160677],[1275696000000, 1.159989],[1275782400000, 1.159989],[1275868800000, 1.159989],[1275955200000, 1.159367],[1276041600000, 1.159586],[1276128000000, 1.159641],[1276214400000, 1.159000],[1276300800000, 1.158589],[1276387200000, 1.158589],[1276473600000, 1.158589],[1276560000000, 1.158451],[1276646400000, 1.158217],[1276732800000, 1.158163],[1276819200000, 1.158632],[1276905600000, 1.159045],[1276992000000, 1.159045],[1277078400000, 1.159045],[1277164800000, 1.163750],[1277251200000, 1.160974],[1277337600000, 1.161088],[1277424000000, 1.163197],[1277510400000, 1.164569],[1277596800000, 1.164569],[1277683200000, 1.164569],[1277769600000, 1.164569],[1277856000000, 1.163192]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });