$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1251763200000,0.449318],[1251849600000,0.44677],[1251936000000,0.442057],[1252022400000,0.446867],[1252108800000,0.446089],[1252195200000,0.446089],[1252281600000,0.446089],[1252368000000,0.449499],[1252454400000,0.454259],[1252540800000,0.454915],[1252627200000,0.456012],[1252713600000,0.457918],[1252800000000,0.457918],[1252886400000,0.457918],[1252972800000,0.457446],[1253059200000,0.461321],[1253145600000,0.46516],[1253232000000,0.469402],[1253318400000,0.469272],[1253404800000,0.469272],[1253491200000,0.469272],[1253577600000,0.46634],[1253664000000,0.470895],[1253750400000,0.468882],[1253836800000,0.469989],[1253923200000,0.46648],[1254009600000,0.46648],[1254096000000,0.46648],[1254182400000,0.464702],[1254268800000,0.462818]], 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: [[1251763200000, 0.449318],[1251763200000, 0.449318],[1251849600000, 0.446770],[1251936000000, 0.442057],[1252022400000, 0.446867],[1252108800000, 0.446089],[1252195200000, 0.446089],[1252281600000, 0.446089],[1252368000000, 0.449499],[1252454400000, 0.454259],[1252540800000, 0.454915],[1252627200000, 0.456012],[1252713600000, 0.457918],[1252800000000, 0.457918],[1252886400000, 0.457918],[1252972800000, 0.457446],[1253059200000, 0.461321],[1253145600000, 0.465160],[1253232000000, 0.469402],[1253318400000, 0.469272],[1253404800000, 0.469272],[1253491200000, 0.469272],[1253577600000, 0.466340],[1253664000000, 0.470895],[1253750400000, 0.468882],[1253836800000, 0.469989],[1253923200000, 0.466480],[1254009600000, 0.466480],[1254096000000, 0.466480],[1254182400000, 0.464702],[1254268800000, 0.462818]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });