$(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: [[1272672000000,1.16126],[1272758400000,1.16126],[1272844800000,1.16126],[1272931200000,1.16126],[1273017600000,1.16126],[1273104000000,1.16108],[1273190400000,1.16103],[1273276800000,1.16119],[1273363200000,1.16119],[1273449600000,1.16119],[1273536000000,1.16119],[1273622400000,1.16062],[1273708800000,1.16091],[1273795200000,1.16081],[1273881600000,1.161],[1273968000000,null],[1274054400000,1.161],[1274140800000,1.16085],[1274227200000,1.1609],[1274313600000,1.16087],[1274400000000,1.16079],[1274486400000,1.16078],[1274572800000,1.16078],[1274659200000,1.16078],[1274745600000,1.16078],[1274832000000,1.16023],[1274918400000,1.16054],[1275004800000,1.16008],[1275091200000,1.16011],[1275177600000,1.16011],[1275264000000,1.16011]], 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: [[1272672000000, 1.161264],[1272672000000, 1.161264],[1272758400000, 1.161264],[1272844800000, 1.161264],[1272931200000, 1.161264],[1273017600000, 1.161264],[1273104000000, 1.161084],[1273190400000, 1.161034],[1273276800000, 1.161190],[1273363200000, 1.161190],[1273449600000, 1.161190],[1273536000000, 1.161190],[1273622400000, 1.160619],[1273708800000, 1.160915],[1273795200000, 1.160808],[1273881600000, 1.161003],[1274054400000, 1.161003],[1274140800000, 1.160848],[1274227200000, 1.160895],[1274313600000, 1.160869],[1274400000000, 1.160786],[1274486400000, 1.160783],[1274572800000, 1.160783],[1274659200000, 1.160783],[1274745600000, 1.160783],[1274832000000, 1.160230],[1274918400000, 1.160539],[1275004800000, 1.160082],[1275091200000, 1.160113],[1275177600000, 1.160113],[1275264000000, 1.160113]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });