$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1193875200000,4.35254],[1193961600000,4.35232],[1194048000000,4.37053],[1194134400000,4.37053],[1194220800000,4.37053],[1194307200000,4.38452],[1194393600000,4.41003],[1194480000000,4.48165],[1194566400000,4.46138],[1194652800000,4.49852],[1194739200000,4.49852],[1194825600000,4.49852],[1194912000000,4.48844],[1194998400000,4.48803],[1195084800000,4.51277],[1195171200000,4.49295],[1195257600000,4.50979],[1195344000000,4.50979],[1195430400000,4.50979],[1195516800000,4.51814],[1195603200000,4.55048],[1195689600000,4.56748],[1195776000000,4.57965],[1195862400000,4.58188],[1195948800000,4.58188],[1196035200000,4.58188],[1196121600000,4.57899],[1196208000000,4.60086],[1196294400000,4.52362],[1196380800000,4.50936]], 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: [[1193875200000, 4.352544],[1193875200000, 4.352544],[1193961600000, 4.352324],[1194048000000, 4.370529],[1194134400000, 4.370529],[1194220800000, 4.370529],[1194307200000, 4.384515],[1194393600000, 4.410034],[1194480000000, 4.481650],[1194566400000, 4.461376],[1194652800000, 4.498523],[1194739200000, 4.498523],[1194825600000, 4.498523],[1194912000000, 4.488444],[1194998400000, 4.488035],[1195084800000, 4.512766],[1195171200000, 4.492947],[1195257600000, 4.509786],[1195344000000, 4.509786],[1195430400000, 4.509786],[1195516800000, 4.518145],[1195603200000, 4.550478],[1195689600000, 4.567477],[1195776000000, 4.579651],[1195862400000, 4.581880],[1195948800000, 4.581880],[1196035200000, 4.581880],[1196121600000, 4.578992],[1196208000000, 4.600864],[1196294400000, 4.523620],[1196380800000, 4.509355]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });