$(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: [[1301616000000,1.21553],[1301702400000,1.21568],[1301788800000,1.21568],[1301875200000,1.21568],[1301961600000,1.21796],[1302048000000,1.21773],[1302134400000,1.2171],[1302220800000,1.21744],[1302307200000,1.21872],[1302393600000,1.21872],[1302480000000,1.21872],[1302566400000,1.21802],[1302652800000,1.2182],[1302739200000,1.2198],[1302825600000,1.21962],[1302912000000,1.2197],[1302998400000,1.2197],[1303084800000,1.2197],[1303171200000,1.22062],[1303257600000,1.21973],[1303344000000,1.22068],[1303430400000,1.22659],[1303516800000,1.22659],[1303603200000,1.22659],[1303689600000,1.22659],[1303776000000,1.22659],[1303862400000,1.22021],[1303948800000,1.22332],[1304035200000,1.22545],[1304121600000,1.22713]], 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: [[1301616000000, 1.215526],[1301616000000, 1.215526],[1301702400000, 1.215681],[1301788800000, 1.215681],[1301875200000, 1.215681],[1301961600000, 1.217958],[1302048000000, 1.217734],[1302134400000, 1.217102],[1302220800000, 1.217438],[1302307200000, 1.218718],[1302393600000, 1.218718],[1302480000000, 1.218718],[1302566400000, 1.218021],[1302652800000, 1.218203],[1302739200000, 1.219799],[1302825600000, 1.219619],[1302912000000, 1.219698],[1302998400000, 1.219698],[1303084800000, 1.219698],[1303171200000, 1.220617],[1303257600000, 1.219726],[1303344000000, 1.220678],[1303430400000, 1.226585],[1303516800000, 1.226585],[1303603200000, 1.226585],[1303689600000, 1.226585],[1303776000000, 1.226585],[1303862400000, 1.220213],[1303948800000, 1.223316],[1304035200000, 1.225446],[1304121600000, 1.227133]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });