$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1149120000000,9.3367],[1149206400000,9.24092],[1149292800000,9.29824],[1149379200000,9.29824],[1149465600000,9.29824],[1149552000000,9.402],[1149638400000,9.32146],[1149724800000,9.27804],[1149811200000,9.24019],[1149897600000,9.18373],[1149984000000,9.18373],[1150070400000,9.18373],[1150156800000,9.18373],[1150243200000,9.11989],[1150329600000,9.11409],[1150416000000,9.1495],[1150502400000,9.17925],[1150588800000,9.17925],[1150675200000,9.17925],[1150761600000,9.1344],[1150848000000,9.10175],[1150934400000,9.16678],[1151020800000,9.12918],[1151107200000,9.07113],[1151193600000,9.07113],[1151280000000,9.07113],[1151366400000,9.11394],[1151452800000,9.1183],[1151539200000,9.1183],[1151625600000,9.09073]], 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: [[1149120000000, 9.336695],[1149120000000, 9.336695],[1149206400000, 9.240920],[1149292800000, 9.298240],[1149379200000, 9.298240],[1149465600000, 9.298240],[1149552000000, 9.401997],[1149638400000, 9.321458],[1149724800000, 9.278042],[1149811200000, 9.240194],[1149897600000, 9.183731],[1149984000000, 9.183731],[1150070400000, 9.183731],[1150156800000, 9.183731],[1150243200000, 9.119889],[1150329600000, 9.114086],[1150416000000, 9.149497],[1150502400000, 9.179246],[1150588800000, 9.179246],[1150675200000, 9.179246],[1150761600000, 9.134399],[1150848000000, 9.101753],[1150934400000, 9.166777],[1151020800000, 9.129181],[1151107200000, 9.071135],[1151193600000, 9.071135],[1151280000000, 9.071135],[1151366400000, 9.113944],[1151452800000, 9.118297],[1151539200000, 9.118297],[1151625600000, 9.090726]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });