$(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: [[1257033600000,0.44711],[1257120000000,0.44711],[1257206400000,0.44642],[1257292800000,0.446874],[1257379200000,0.453542],[1257465600000,0.460538],[1257552000000,0.462658],[1257638400000,0.462658],[1257724800000,0.462658],[1257811200000,0.468085],[1257897600000,0.468494],[1257984000000,0.473512],[1258070400000,0.467833],[1258156800000,0.465575],[1258243200000,0.465575],[1258329600000,0.465575],[1258416000000,0.468913],[1258502400000,0.466192],[1258588800000,0.469755],[1258675200000,0.463798],[1258761600000,0.457264],[1258848000000,0.457264],[1258934400000,0.457264],[1259020800000,0.462755],[1259107200000,0.461892],[1259193600000,0.463722],[1259280000000,0.459301],[1259366400000,0.454667],[1259452800000,0.454667],[1259539200000,0.454667]], 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: [[1257033600000, 0.447110],[1257033600000, 0.447110],[1257120000000, 0.447110],[1257206400000, 0.446420],[1257292800000, 0.446874],[1257379200000, 0.453542],[1257465600000, 0.460538],[1257552000000, 0.462658],[1257638400000, 0.462658],[1257724800000, 0.462658],[1257811200000, 0.468085],[1257897600000, 0.468494],[1257984000000, 0.473512],[1258070400000, 0.467833],[1258156800000, 0.465575],[1258243200000, 0.465575],[1258329600000, 0.465575],[1258416000000, 0.468913],[1258502400000, 0.466192],[1258588800000, 0.469755],[1258675200000, 0.463798],[1258761600000, 0.457264],[1258848000000, 0.457264],[1258934400000, 0.457264],[1259020800000, 0.462755],[1259107200000, 0.461892],[1259193600000, 0.463722],[1259280000000, 0.459301],[1259366400000, 0.454667],[1259452800000, 0.454667],[1259539200000, 0.454667]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });