$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1412121600000,19.2598],[1412208000000,19.2072],[1412294400000,19.2006],[1412380800000,19.2201],[1412467200000,19.2201],[1412553600000,19.2201],[1412640000000,19.2059],[1412726400000,19.1774],[1412812800000,19.197],[1412899200000,19.212],[1412985600000,19.3246],[1413072000000,19.3246],[1413158400000,19.3246],[1413244800000,19.2534],[1413331200000,19.2513],[1413417600000,19.24],[1413504000000,19.2244],[1413590400000,19.3103],[1413676800000,19.3103],[1413763200000,19.3103],[1413849600000,19.3548],[1413936000000,19.3258],[1414022400000,19.3217],[1414108800000,19.2716],[1414195200000,19.2448],[1414281600000,19.2448],[1414368000000,19.2448],[1414454400000,19.2326],[1414540800000,19.2574],[1414627200000,19.2726],[1414713600000,19.2911]], 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, 19.259790],[1412121600000, 19.259790],[1412208000000, 19.207200],[1412294400000, 19.200583],[1412380800000, 19.220109],[1412467200000, 19.220109],[1412553600000, 19.220109],[1412640000000, 19.205913],[1412726400000, 19.177364],[1412812800000, 19.197007],[1412899200000, 19.212011],[1412985600000, 19.324556],[1413072000000, 19.324556],[1413158400000, 19.324556],[1413244800000, 19.253405],[1413331200000, 19.251289],[1413417600000, 19.239967],[1413504000000, 19.224379],[1413590400000, 19.310292],[1413676800000, 19.310292],[1413763200000, 19.310292],[1413849600000, 19.354798],[1413936000000, 19.325794],[1414022400000, 19.321667],[1414108800000, 19.271646],[1414195200000, 19.244754],[1414281600000, 19.244754],[1414368000000, 19.244754],[1414454400000, 19.232622],[1414540800000, 19.257395],[1414627200000, 19.272605],[1414713600000, 19.291144]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });