$(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: [[1251763200000,1.16959],[1251849600000,1.16831],[1251936000000,1.16893],[1252022400000,1.16902],[1252108800000,1.17058],[1252195200000,1.17058],[1252281600000,1.17058],[1252368000000,1.17074],[1252454400000,1.1713],[1252540800000,1.17077],[1252627200000,1.17058],[1252713600000,1.1711],[1252800000000,1.1711],[1252886400000,1.1711],[1252972800000,1.17103],[1253059200000,1.17211],[1253145600000,1.17264],[1253232000000,1.17286],[1253318400000,1.17262],[1253404800000,1.17262],[1253491200000,1.17262],[1253577600000,1.17249],[1253664000000,1.17283],[1253750400000,1.17297],[1253836800000,1.17278],[1253923200000,1.1726],[1254009600000,1.1726],[1254096000000,1.1726],[1254182400000,1.17319],[1254268800000,1.17311]], 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: [[1251763200000, 1.169594],[1251763200000, 1.169594],[1251849600000, 1.168311],[1251936000000, 1.168934],[1252022400000, 1.169024],[1252108800000, 1.170577],[1252195200000, 1.170577],[1252281600000, 1.170577],[1252368000000, 1.170737],[1252454400000, 1.171297],[1252540800000, 1.170775],[1252627200000, 1.170582],[1252713600000, 1.171099],[1252800000000, 1.171099],[1252886400000, 1.171099],[1252972800000, 1.171033],[1253059200000, 1.172107],[1253145600000, 1.172643],[1253232000000, 1.172861],[1253318400000, 1.172618],[1253404800000, 1.172618],[1253491200000, 1.172618],[1253577600000, 1.172488],[1253664000000, 1.172826],[1253750400000, 1.172971],[1253836800000, 1.172781],[1253923200000, 1.172604],[1254009600000, 1.172604],[1254096000000, 1.172604],[1254182400000, 1.173195],[1254268800000, 1.173106]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });