$(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: [[1335830400000,1.27041],[1335916800000,1.27041],[1336003200000,1.27041],[1336089600000,1.27134],[1336176000000,1.26701],[1336262400000,1.26701],[1336348800000,1.26701],[1336435200000,1.26996],[1336521600000,1.26945],[1336608000000,1.26945],[1336694400000,1.26538],[1336780800000,1.26618],[1336867200000,1.26618],[1336953600000,1.26618],[1337040000000,1.26376],[1337126400000,1.26442],[1337212800000,1.26388],[1337299200000,1.26336],[1337385600000,1.2634],[1337472000000,1.2634],[1337558400000,1.2634],[1337644800000,1.2641],[1337731200000,1.26543],[1337817600000,1.26263],[1337904000000,1.26175],[1337990400000,1.26178],[1338076800000,1.26178],[1338163200000,1.26178],[1338249600000,1.26236],[1338336000000,1.26215],[1338422400000,1.25964]], 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: [[1335830400000, 1.270413],[1335830400000, 1.270413],[1335916800000, 1.270413],[1336003200000, 1.270413],[1336089600000, 1.271343],[1336176000000, 1.267007],[1336262400000, 1.267007],[1336348800000, 1.267007],[1336435200000, 1.269964],[1336521600000, 1.269448],[1336608000000, 1.269448],[1336694400000, 1.265376],[1336780800000, 1.266176],[1336867200000, 1.266176],[1336953600000, 1.266176],[1337040000000, 1.263761],[1337126400000, 1.264424],[1337212800000, 1.263882],[1337299200000, 1.263362],[1337385600000, 1.263405],[1337472000000, 1.263405],[1337558400000, 1.263405],[1337644800000, 1.264101],[1337731200000, 1.265432],[1337817600000, 1.262630],[1337904000000, 1.261746],[1337990400000, 1.261783],[1338076800000, 1.261783],[1338163200000, 1.261783],[1338249600000, 1.262365],[1338336000000, 1.262154],[1338422400000, 1.259639]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });