$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1427846400000,3.78224],[1427932800000,3.78849],[1428019200000,3.79417],[1428105600000,3.76113],[1428192000000,3.76113],[1428278400000,3.76113],[1428364800000,3.78417],[1428451200000,3.79188],[1428537600000,3.79015],[1428624000000,3.77627],[1428710400000,3.68548],[1428796800000,3.68548],[1428883200000,3.68548],[1428969600000,3.68548],[1429056000000,3.69016],[1429142400000,3.51049],[1429228800000,3.46063],[1429315200000,3.39811],[1429401600000,3.39811],[1429488000000,3.39811],[1429574400000,3.58616],[1429660800000,3.59196],[1429747200000,3.63931],[1429833600000,3.63526],[1429920000000,3.62424],[1430006400000,3.62424],[1430092800000,3.62424],[1430179200000,3.68154],[1430265600000,3.58761],[1430352000000,3.39472]], 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, 3.782243],[1427846400000, 3.782243],[1427932800000, 3.788490],[1428019200000, 3.794170],[1428105600000, 3.761135],[1428192000000, 3.761135],[1428278400000, 3.761135],[1428364800000, 3.784168],[1428451200000, 3.791882],[1428537600000, 3.790155],[1428624000000, 3.776269],[1428710400000, 3.685477],[1428796800000, 3.685477],[1428883200000, 3.685477],[1428969600000, 3.685477],[1429056000000, 3.690157],[1429142400000, 3.510491],[1429228800000, 3.460635],[1429315200000, 3.398109],[1429401600000, 3.398109],[1429488000000, 3.398109],[1429574400000, 3.586159],[1429660800000, 3.591957],[1429747200000, 3.639313],[1429833600000, 3.635262],[1429920000000, 3.624244],[1430006400000, 3.624244],[1430092800000, 3.624244],[1430179200000, 3.681542],[1430265600000, 3.587607],[1430352000000, 3.394720]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });