$(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: [[1164931200000,9.55288],[1165017600000,9.58472],[1165104000000,9.58472],[1165190400000,9.58472],[1165276800000,9.63176],[1165363200000,9.64492],[1165449600000,9.59818],[1165536000000,9.61206],[1165622400000,9.59825],[1165708800000,9.59825],[1165795200000,9.59825],[1165881600000,9.53487],[1165968000000,9.59572],[1166054400000,9.6068],[1166140800000,9.55257],[1166227200000,9.49165],[1166313600000,9.49165],[1166400000000,9.49165],[1166486400000,9.48233],[1166572800000,9.52795],[1166659200000,9.56053],[1166745600000,9.53833],[1166832000000,9.5512],[1166918400000,9.5512],[1167004800000,9.5512],[1167091200000,9.5512],[1167177600000,9.5512],[1167264000000,9.53277],[1167350400000,9.54154],[1167436800000,9.53937]], 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, 9.552880],[1164931200000, 9.552880],[1165017600000, 9.584723],[1165104000000, 9.584723],[1165190400000, 9.584723],[1165276800000, 9.631764],[1165363200000, 9.644921],[1165449600000, 9.598182],[1165536000000, 9.612060],[1165622400000, 9.598253],[1165708800000, 9.598253],[1165795200000, 9.598253],[1165881600000, 9.534869],[1165968000000, 9.595725],[1166054400000, 9.606805],[1166140800000, 9.552567],[1166227200000, 9.491654],[1166313600000, 9.491654],[1166400000000, 9.491654],[1166486400000, 9.482327],[1166572800000, 9.527947],[1166659200000, 9.560532],[1166745600000, 9.538326],[1166832000000, 9.551197],[1166918400000, 9.551197],[1167004800000, 9.551197],[1167091200000, 9.551197],[1167177600000, 9.551197],[1167264000000, 9.532771],[1167350400000, 9.541545],[1167436800000, 9.539372]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });