$(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: [[1257033600000,1.17071],[1257120000000,1.17071],[1257206400000,1.17122],[1257292800000,1.17334],[1257379200000,1.17399],[1257465600000,1.17373],[1257552000000,1.17074],[1257638400000,1.17074],[1257724800000,1.17074],[1257811200000,1.17044],[1257897600000,1.17039],[1257984000000,1.17081],[1258070400000,1.17134],[1258156800000,1.17136],[1258243200000,1.17136],[1258329600000,1.17136],[1258416000000,1.17084],[1258502400000,1.17048],[1258588800000,1.17049],[1258675200000,1.17011],[1258761600000,1.17021],[1258848000000,1.17021],[1258934400000,1.17021],[1259020800000,1.16982],[1259107200000,1.16995],[1259193600000,1.16958],[1259280000000,1.16912],[1259366400000,1.16878],[1259452800000,1.16878],[1259539200000,1.16878]], 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: [[1257033600000, 1.170707],[1257033600000, 1.170707],[1257120000000, 1.170707],[1257206400000, 1.171221],[1257292800000, 1.173343],[1257379200000, 1.173990],[1257465600000, 1.173735],[1257552000000, 1.170745],[1257638400000, 1.170745],[1257724800000, 1.170745],[1257811200000, 1.170440],[1257897600000, 1.170386],[1257984000000, 1.170806],[1258070400000, 1.171339],[1258156800000, 1.171357],[1258243200000, 1.171357],[1258329600000, 1.171357],[1258416000000, 1.170837],[1258502400000, 1.170485],[1258588800000, 1.170490],[1258675200000, 1.170107],[1258761600000, 1.170214],[1258848000000, 1.170214],[1258934400000, 1.170214],[1259020800000, 1.169821],[1259107200000, 1.169945],[1259193600000, 1.169582],[1259280000000, 1.169122],[1259366400000, 1.168781],[1259452800000, 1.168781],[1259539200000, 1.168781]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });