$(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: [[1435708800000,3.38822],[1435795200000,3.38724],[1435881600000,3.38651],[1435968000000,3.38705],[1436054400000,3.38705],[1436140800000,3.38705],[1436227200000,3.4256],[1436313600000,3.49301],[1436400000000,3.53864],[1436486400000,3.51891],[1436572800000,3.52957],[1436659200000,3.52957],[1436745600000,3.52957],[1436832000000,3.53773],[1436918400000,3.54319],[1437004800000,3.56041],[1437091200000,3.5399],[1437177600000,3.54537],[1437264000000,3.54537],[1437350400000,3.54537],[1437436800000,3.54853],[1437523200000,3.54639],[1437609600000,3.54496],[1437696000000,3.54545],[1437782400000,3.5552],[1437868800000,3.5552],[1437955200000,3.5552],[1438041600000,3.5552],[1438128000000,3.54937],[1438214400000,3.55505],[1438300800000,3.48034]], 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: [[1435708800000, 3.388222],[1435708800000, 3.388222],[1435795200000, 3.387239],[1435881600000, 3.386511],[1435968000000, 3.387047],[1436054400000, 3.387047],[1436140800000, 3.387047],[1436227200000, 3.425597],[1436313600000, 3.493011],[1436400000000, 3.538645],[1436486400000, 3.518908],[1436572800000, 3.529572],[1436659200000, 3.529572],[1436745600000, 3.529572],[1436832000000, 3.537728],[1436918400000, 3.543191],[1437004800000, 3.560412],[1437091200000, 3.539904],[1437177600000, 3.545375],[1437264000000, 3.545375],[1437350400000, 3.545375],[1437436800000, 3.548528],[1437523200000, 3.546395],[1437609600000, 3.544957],[1437696000000, 3.545449],[1437782400000, 3.555202],[1437868800000, 3.555202],[1437955200000, 3.555202],[1438041600000, 3.555202],[1438128000000, 3.549372],[1438214400000, 3.555053],[1438300800000, 3.480339]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });