$(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: [[1338508800000,0.385829],[1338595200000,0.381912],[1338681600000,0.381912],[1338768000000,0.381912],[1338854400000,0.381912],[1338940800000,0.386232],[1339027200000,0.390324],[1339113600000,0.397495],[1339200000000,0.391078],[1339286400000,0.391078],[1339372800000,0.391078],[1339459200000,0.394794],[1339545600000,0.388764],[1339632000000,0.386232],[1339718400000,0.392772],[1339804800000,0.393379],[1339891200000,0.393379],[1339977600000,0.393379],[1340064000000,0.395596],[1340150400000,0.395597],[1340236800000,0.398918],[1340323200000,0.394288],[1340409600000,0.388818],[1340496000000,0.388818],[1340582400000,0.388818],[1340668800000,0.386667],[1340755200000,0.384033],[1340841600000,0.384822],[1340928000000,0.384822],[1341014400000,0.384822]], 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: [[1338508800000, 0.385829],[1338508800000, 0.385829],[1338595200000, 0.381912],[1338681600000, 0.381912],[1338768000000, 0.381912],[1338854400000, 0.381912],[1338940800000, 0.386232],[1339027200000, 0.390324],[1339113600000, 0.397495],[1339200000000, 0.391078],[1339286400000, 0.391078],[1339372800000, 0.391078],[1339459200000, 0.394794],[1339545600000, 0.388764],[1339632000000, 0.386232],[1339718400000, 0.392772],[1339804800000, 0.393379],[1339891200000, 0.393379],[1339977600000, 0.393379],[1340064000000, 0.395596],[1340150400000, 0.395597],[1340236800000, 0.398918],[1340323200000, 0.394288],[1340409600000, 0.388818],[1340496000000, 0.388818],[1340582400000, 0.388818],[1340668800000, 0.386667],[1340755200000, 0.384033],[1340841600000, 0.384822],[1340928000000, 0.384822],[1341014400000, 0.384822]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });