$(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: [[1448928000000,3.74281],[1449014400000,3.727],[1449100800000,3.6957],[1449187200000,3.60876],[1449273600000,3.69355],[1449360000000,3.69355],[1449446400000,3.69355],[1449532800000,3.6595],[1449619200000,3.57018],[1449705600000,3.56194],[1449792000000,3.63155],[1449878400000,3.69461],[1449964800000,3.69461],[1450051200000,3.69461],[1450137600000,3.68711],[1450224000000,3.62913],[1450310400000,3.63567],[1450396800000,3.6205],[1450483200000,3.63077],[1450569600000,3.63077],[1450656000000,3.63077],[1450742400000,3.62834],[1450828800000,3.57385],[1450915200000,3.5503],[1451001600000,3.54673],[1451088000000,3.57345],[1451174400000,3.57345],[1451260800000,3.57345],[1451347200000,3.66985],[1451433600000,3.66645],[1451520000000,3.69809]], 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: [[1448928000000, 3.742806],[1448928000000, 3.742806],[1449014400000, 3.727002],[1449100800000, 3.695704],[1449187200000, 3.608757],[1449273600000, 3.693552],[1449360000000, 3.693552],[1449446400000, 3.693552],[1449532800000, 3.659495],[1449619200000, 3.570183],[1449705600000, 3.561938],[1449792000000, 3.631554],[1449878400000, 3.694610],[1449964800000, 3.694610],[1450051200000, 3.694610],[1450137600000, 3.687110],[1450224000000, 3.629129],[1450310400000, 3.635668],[1450396800000, 3.620502],[1450483200000, 3.630773],[1450569600000, 3.630773],[1450656000000, 3.630773],[1450742400000, 3.628345],[1450828800000, 3.573854],[1450915200000, 3.550303],[1451001600000, 3.546729],[1451088000000, 3.573449],[1451174400000, 3.573449],[1451260800000, 3.573449],[1451347200000, 3.669849],[1451433600000, 3.666446],[1451520000000, 3.698086]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });