$(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: [[1393632000000,1.5784],[1393718400000,1.5784],[1393804800000,1.5784],[1393891200000,1.6264],[1393977600000,1.5832],[1394064000000,1.54177],[1394150400000,1.53381],[1394236800000,1.50776],[1394323200000,1.50776],[1394409600000,1.50776],[1394496000000,1.50776],[1394582400000,1.51423],[1394668800000,1.5104],[1394755200000,1.54399],[1394841600000,1.56112],[1394928000000,1.56112],[1395014400000,1.56112],[1395100800000,1.57958],[1395187200000,1.60846],[1395273600000,1.60055],[1395360000000,1.62303],[1395446400000,1.63777],[1395532800000,1.63777],[1395619200000,1.63777],[1395705600000,1.67513],[1395792000000,1.70511],[1395878400000,1.71876],[1395964800000,1.74705],[1396051200000,1.76339],[1396137600000,1.76339],[1396224000000,1.76339]], 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: [[1393632000000, 1.578401],[1393632000000, 1.578401],[1393718400000, 1.578401],[1393804800000, 1.578401],[1393891200000, 1.626398],[1393977600000, 1.583196],[1394064000000, 1.541770],[1394150400000, 1.533814],[1394236800000, 1.507756],[1394323200000, 1.507756],[1394409600000, 1.507756],[1394496000000, 1.507756],[1394582400000, 1.514233],[1394668800000, 1.510397],[1394755200000, 1.543989],[1394841600000, 1.561119],[1394928000000, 1.561119],[1395014400000, 1.561119],[1395100800000, 1.579580],[1395187200000, 1.608461],[1395273600000, 1.600547],[1395360000000, 1.623029],[1395446400000, 1.637772],[1395532800000, 1.637772],[1395619200000, 1.637772],[1395705600000, 1.675126],[1395792000000, 1.705112],[1395878400000, 1.718758],[1395964800000, 1.747054],[1396051200000, 1.763394],[1396137600000, 1.763394],[1396224000000, 1.763394]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });