$(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: [[1359676800000,1.28526],[1359763200000,1.28355],[1359849600000,1.28355],[1359936000000,1.28355],[1360022400000,1.28218],[1360108800000,1.2829],[1360195200000,1.28257],[1360281600000,1.28255],[1360368000000,1.28188],[1360454400000,1.28188],[1360540800000,1.28188],[1360627200000,1.28249],[1360713600000,1.28218],[1360800000000,1.28247],[1360886400000,1.28245],[1360972800000,1.28253],[1361059200000,1.28253],[1361145600000,1.28253],[1361232000000,1.27978],[1361318400000,1.28004],[1361404800000,1.28136],[1361491200000,1.28103],[1361577600000,1.2808],[1361664000000,1.2808],[1361750400000,1.2808],[1361836800000,1.28147],[1361923200000,1.28281],[1362009600000,1.28348]], 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: [[1359676800000, 1.285262],[1359676800000, 1.285262],[1359763200000, 1.283546],[1359849600000, 1.283546],[1359936000000, 1.283546],[1360022400000, 1.282180],[1360108800000, 1.282902],[1360195200000, 1.282573],[1360281600000, 1.282554],[1360368000000, 1.281878],[1360454400000, 1.281878],[1360540800000, 1.281878],[1360627200000, 1.282493],[1360713600000, 1.282185],[1360800000000, 1.282472],[1360886400000, 1.282448],[1360972800000, 1.282534],[1361059200000, 1.282534],[1361145600000, 1.282534],[1361232000000, 1.279785],[1361318400000, 1.280035],[1361404800000, 1.281356],[1361491200000, 1.281033],[1361577600000, 1.280799],[1361664000000, 1.280799],[1361750400000, 1.280799],[1361836800000, 1.281469],[1361923200000, 1.282808],[1362009600000, 1.283478]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });