$(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: [[1412121600000,2.1047],[1412208000000,2.1099],[1412294400000,2.10913],[1412380800000,2.1075],[1412467200000,2.1075],[1412553600000,2.1075],[1412640000000,2.10943],[1412726400000,2.11178],[1412812800000,2.10918],[1412899200000,2.10644],[1412985600000,2.11171],[1413072000000,2.11171],[1413158400000,2.11171],[1413244800000,2.11267],[1413331200000,2.11384],[1413417600000,2.11437],[1413504000000,2.11393],[1413590400000,2.11494],[1413676800000,2.11494],[1413763200000,2.11494],[1413849600000,2.11434],[1413936000000,2.11505],[1414022400000,2.11485],[1414108800000,2.11634],[1414195200000,2.11586],[1414281600000,2.11586],[1414368000000,2.11586],[1414454400000,2.11737],[1414540800000,2.11749],[1414627200000,2.11867],[1414713600000,2.11942]], 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: [[1412121600000, 2.104700],[1412121600000, 2.104700],[1412208000000, 2.109905],[1412294400000, 2.109133],[1412380800000, 2.107500],[1412467200000, 2.107500],[1412553600000, 2.107500],[1412640000000, 2.109435],[1412726400000, 2.111777],[1412812800000, 2.109181],[1412899200000, 2.106438],[1412985600000, 2.111706],[1413072000000, 2.111706],[1413158400000, 2.111706],[1413244800000, 2.112675],[1413331200000, 2.113840],[1413417600000, 2.114366],[1413504000000, 2.113929],[1413590400000, 2.114935],[1413676800000, 2.114935],[1413763200000, 2.114935],[1413849600000, 2.114338],[1413936000000, 2.115046],[1414022400000, 2.114846],[1414108800000, 2.116342],[1414195200000, 2.115860],[1414281600000, 2.115860],[1414368000000, 2.115860],[1414454400000, 2.117372],[1414540800000, 2.117490],[1414627200000, 2.118666],[1414713600000, 2.119417]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });