$(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: [[1164931200000,7.61402],[1165017600000,7.62981],[1165104000000,7.62981],[1165190400000,7.62981],[1165276800000,7.65396],[1165363200000,7.66056],[1165449600000,7.6474],[1165536000000,7.64854],[1165622400000,7.63811],[1165708800000,7.63811],[1165795200000,7.63811],[1165881600000,7.60576],[1165968000000,7.6211],[1166054400000,7.63202],[1166140800000,7.60739],[1166227200000,7.58448],[1166313600000,7.58448],[1166400000000,7.58448],[1166486400000,7.57996],[1166572800000,7.60056],[1166659200000,7.61408],[1166745600000,7.60151],[1166832000000,7.60421],[1166918400000,7.60421],[1167004800000,7.60421],[1167091200000,7.60421],[1167177600000,7.60421],[1167264000000,7.59428],[1167350400000,7.59094],[1167436800000,7.59723]], 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, 7.614022],[1164931200000, 7.614022],[1165017600000, 7.629805],[1165104000000, 7.629805],[1165190400000, 7.629805],[1165276800000, 7.653962],[1165363200000, 7.660557],[1165449600000, 7.647402],[1165536000000, 7.648537],[1165622400000, 7.638114],[1165708800000, 7.638114],[1165795200000, 7.638114],[1165881600000, 7.605765],[1165968000000, 7.621100],[1166054400000, 7.632019],[1166140800000, 7.607392],[1166227200000, 7.584484],[1166313600000, 7.584484],[1166400000000, 7.584484],[1166486400000, 7.579965],[1166572800000, 7.600557],[1166659200000, 7.614079],[1166745600000, 7.601506],[1166832000000, 7.604208],[1166918400000, 7.604208],[1167004800000, 7.604208],[1167091200000, 7.604208],[1167177600000, 7.604208],[1167264000000, 7.594282],[1167350400000, 7.590937],[1167436800000, 7.597229]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });