$(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: [[1488326400000,3.95512],[1488412800000,3.9504],[1488499200000,3.93428],[1488585600000,3.93175],[1488672000000,3.93175],[1488758400000,3.93175],[1488844800000,3.918],[1488931200000,3.90708],[1489017600000,3.90708],[1489104000000,3.89391],[1489190400000,3.87734],[1489276800000,3.87734],[1489363200000,3.87734],[1489449600000,3.89024],[1489536000000,3.89084],[1489622400000,3.88801],[1489708800000,3.91029],[1489795200000,3.89696],[1489881600000,3.89696],[1489968000000,3.89696],[1490054400000,3.89264],[1490140800000,3.89751],[1490227200000,3.90853],[1490313600000,3.92961],[1490400000000,3.93894],[1490486400000,3.93894],[1490572800000,3.93894],[1490659200000,3.94786],[1490745600000,3.93895],[1490832000000,3.92405],[1490918400000,3.91551]], 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: [[1488326400000, 3.955123],[1488326400000, 3.955123],[1488412800000, 3.950404],[1488499200000, 3.934282],[1488585600000, 3.931755],[1488672000000, 3.931755],[1488758400000, 3.931755],[1488844800000, 3.917999],[1488931200000, 3.907083],[1489017600000, 3.907083],[1489104000000, 3.893913],[1489190400000, 3.877338],[1489276800000, 3.877338],[1489363200000, 3.877338],[1489449600000, 3.890239],[1489536000000, 3.890840],[1489622400000, 3.888008],[1489708800000, 3.910285],[1489795200000, 3.896963],[1489881600000, 3.896963],[1489968000000, 3.896963],[1490054400000, 3.892636],[1490140800000, 3.897513],[1490227200000, 3.908527],[1490313600000, 3.929609],[1490400000000, 3.938941],[1490486400000, 3.938941],[1490572800000, 3.938941],[1490659200000, 3.947860],[1490745600000, 3.938948],[1490832000000, 3.924052],[1490918400000, 3.915509]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });