$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1472688000000,26.4978],[1472774400000,27.0232],[1472860800000,27.2017],[1472947200000,27.2017],[1473033600000,27.2017],[1473120000000,27.3534],[1473206400000,27.4285],[1473292800000,27.5733],[1473379200000,27.5626],[1473465600000,27.402],[1473552000000,27.402],[1473638400000,27.402],[1473724800000,27.3394],[1473811200000,27.2049],[1473897600000,26.9867],[1473984000000,26.9564],[1474070400000,26.5758],[1474156800000,26.5758],[1474243200000,26.5758],[1474329600000,26.261],[1474416000000,26.3738],[1474502400000,26.6119],[1474588800000,26.8078],[1474675200000,26.7713],[1474761600000,26.7713],[1474848000000,26.7713],[1474934400000,26.7495],[1475020800000,26.6366],[1475107200000,26.6908],[1475193600000,26.7338]], 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: [[1472688000000, 26.497807],[1472688000000, 26.497807],[1472774400000, 27.023247],[1472860800000, 27.201652],[1472947200000, 27.201652],[1473033600000, 27.201652],[1473120000000, 27.353442],[1473206400000, 27.428544],[1473292800000, 27.573320],[1473379200000, 27.562575],[1473465600000, 27.402007],[1473552000000, 27.402007],[1473638400000, 27.402007],[1473724800000, 27.339402],[1473811200000, 27.204856],[1473897600000, 26.986722],[1473984000000, 26.956434],[1474070400000, 26.575773],[1474156800000, 26.575773],[1474243200000, 26.575773],[1474329600000, 26.260984],[1474416000000, 26.373848],[1474502400000, 26.611873],[1474588800000, 26.807838],[1474675200000, 26.771276],[1474761600000, 26.771276],[1474848000000, 26.771276],[1474934400000, 26.749464],[1475020800000, 26.636645],[1475107200000, 26.690829],[1475193600000, 26.733835]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });