$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1427846400000,6.17598],[1427932800000,6.21918],[1428019200000,6.26388],[1428105600000,6.20934],[1428192000000,6.20934],[1428278400000,6.20934],[1428364800000,6.24736],[1428451200000,6.28345],[1428537600000,6.35705],[1428624000000,6.28607],[1428710400000,6.01934],[1428796800000,6.01934],[1428883200000,6.01934],[1428969600000,6.01934],[1429056000000,6.03905],[1429142400000,5.73554],[1429228800000,5.6985],[1429315200000,5.66645],[1429401600000,5.66645],[1429488000000,5.66645],[1429574400000,5.98215],[1429660800000,6.00648],[1429747200000,6.05094],[1429833600000,6.03968],[1429920000000,6.05558],[1430006400000,6.05558],[1430092800000,6.05558],[1430179200000,6.18948],[1430265600000,6.07925],[1430352000000,5.77162]], 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: [[1427846400000, 6.175979],[1427846400000, 6.175979],[1427932800000, 6.219176],[1428019200000, 6.263877],[1428105600000, 6.209338],[1428192000000, 6.209338],[1428278400000, 6.209338],[1428364800000, 6.247364],[1428451200000, 6.283453],[1428537600000, 6.357055],[1428624000000, 6.286072],[1428710400000, 6.019340],[1428796800000, 6.019340],[1428883200000, 6.019340],[1428969600000, 6.019340],[1429056000000, 6.039050],[1429142400000, 5.735543],[1429228800000, 5.698501],[1429315200000, 5.666446],[1429401600000, 5.666446],[1429488000000, 5.666446],[1429574400000, 5.982146],[1429660800000, 6.006479],[1429747200000, 6.050941],[1429833600000, 6.039682],[1429920000000, 6.055579],[1430006400000, 6.055579],[1430092800000, 6.055579],[1430179200000, 6.189481],[1430265600000, 6.079253],[1430352000000, 5.771616]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });