$(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: [[1164931200000,4.18824],[1165017600000,4.21066],[1165104000000,4.21066],[1165190400000,4.21066],[1165276800000,4.21858],[1165363200000,4.23806],[1165449600000,4.21914],[1165536000000,4.22991],[1165622400000,4.21898],[1165708800000,4.21898],[1165795200000,4.21898],[1165881600000,4.18094],[1165968000000,4.19903],[1166054400000,4.19963],[1166140800000,4.16711],[1166227200000,4.14254],[1166313600000,4.14254],[1166400000000,4.14254],[1166486400000,4.13492],[1166572800000,4.14677],[1166659200000,4.15706],[1166745600000,4.151],[1166832000000,4.15619],[1166918400000,4.15619],[1167004800000,4.15619],[1167091200000,4.15619],[1167177600000,4.15619],[1167264000000,4.13831],[1167350400000,4.14271],[1167436800000,4.13893]], 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: [[1164931200000, 4.188238],[1164931200000, 4.188238],[1165017600000, 4.210665],[1165104000000, 4.210665],[1165190400000, 4.210665],[1165276800000, 4.218582],[1165363200000, 4.238058],[1165449600000, 4.219140],[1165536000000, 4.229912],[1165622400000, 4.218979],[1165708800000, 4.218979],[1165795200000, 4.218979],[1165881600000, 4.180941],[1165968000000, 4.199033],[1166054400000, 4.199627],[1166140800000, 4.167111],[1166227200000, 4.142536],[1166313600000, 4.142536],[1166400000000, 4.142536],[1166486400000, 4.134918],[1166572800000, 4.146774],[1166659200000, 4.157064],[1166745600000, 4.151004],[1166832000000, 4.156192],[1166918400000, 4.156192],[1167004800000, 4.156192],[1167091200000, 4.156192],[1167177600000, 4.156192],[1167264000000, 4.138308],[1167350400000, 4.142711],[1167436800000, 4.138932]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });