$(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: [[1220227200000,0.709025],[1220313600000,0.710121],[1220400000000,0.709111],[1220486400000,0.708811],[1220572800000,0.709473],[1220659200000,0.708952],[1220745600000,0.708952],[1220832000000,0.708952],[1220918400000,0.708881],[1221004800000,0.709467],[1221091200000,0.709467],[1221177600000,0.708728],[1221264000000,0.708837],[1221350400000,0.708837],[1221436800000,0.708837],[1221523200000,0.708792],[1221609600000,0.708291],[1221696000000,0.70954],[1221782400000,0.709845],[1221868800000,0.70973],[1221955200000,0.70973],[1222041600000,0.70973],[1222128000000,0.710175],[1222214400000,0.712568],[1222300800000,0.712239],[1222387200000,0.713172],[1222473600000,0.709805],[1222560000000,0.709805],[1222646400000,0.709805],[1222732800000,0.709791]], 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: [[1220227200000, 0.709025],[1220227200000, 0.709025],[1220313600000, 0.710121],[1220400000000, 0.709111],[1220486400000, 0.708811],[1220572800000, 0.709473],[1220659200000, 0.708952],[1220745600000, 0.708952],[1220832000000, 0.708952],[1220918400000, 0.708881],[1221004800000, 0.709467],[1221091200000, 0.709467],[1221177600000, 0.708728],[1221264000000, 0.708837],[1221350400000, 0.708837],[1221436800000, 0.708837],[1221523200000, 0.708792],[1221609600000, 0.708291],[1221696000000, 0.709540],[1221782400000, 0.709845],[1221868800000, 0.709730],[1221955200000, 0.709730],[1222041600000, 0.709730],[1222128000000, 0.710175],[1222214400000, 0.712568],[1222300800000, 0.712239],[1222387200000, 0.713172],[1222473600000, 0.709805],[1222560000000, 0.709805],[1222646400000, 0.709805],[1222732800000, 0.709791]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });