$(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: [[1380585600000,1.30613],[1380672000000,1.30571],[1380758400000,1.30579],[1380844800000,1.30589],[1380931200000,1.306],[1381017600000,1.306],[1381104000000,1.306],[1381190400000,1.30613],[1381276800000,1.30529],[1381363200000,1.30609],[1381449600000,1.30609],[1381536000000,1.30636],[1381622400000,1.30636],[1381708800000,1.30636],[1381795200000,1.30891],[1381881600000,1.3099],[1381968000000,1.31028],[1382054400000,1.31095],[1382140800000,1.31098],[1382227200000,1.31098],[1382313600000,1.31098],[1382400000000,1.31127],[1382486400000,1.31177],[1382572800000,1.31337],[1382659200000,1.31364],[1382745600000,1.31386],[1382832000000,1.31386],[1382918400000,1.31386],[1383004800000,1.31336],[1383091200000,1.31236],[1383177600000,1.31149]], 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: [[1380585600000, 1.306134],[1380585600000, 1.306134],[1380672000000, 1.305707],[1380758400000, 1.305790],[1380844800000, 1.305893],[1380931200000, 1.306001],[1381017600000, 1.306001],[1381104000000, 1.306001],[1381190400000, 1.306134],[1381276800000, 1.305294],[1381363200000, 1.306090],[1381449600000, 1.306090],[1381536000000, 1.306359],[1381622400000, 1.306359],[1381708800000, 1.306359],[1381795200000, 1.308910],[1381881600000, 1.309903],[1381968000000, 1.310282],[1382054400000, 1.310945],[1382140800000, 1.310978],[1382227200000, 1.310978],[1382313600000, 1.310978],[1382400000000, 1.311267],[1382486400000, 1.311765],[1382572800000, 1.313368],[1382659200000, 1.313643],[1382745600000, 1.313856],[1382832000000, 1.313856],[1382918400000, 1.313856],[1383004800000, 1.313364],[1383091200000, 1.312356],[1383177600000, 1.311492]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });