$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1301616000000,0.042559],[1301702400000,0.0422754],[1301788800000,0.0422754],[1301875200000,0.0422754],[1301961600000,0.0427221],[1302048000000,0.0426667],[1302134400000,0.0432667],[1302220800000,0.0430452],[1302307200000,0.043432],[1302393600000,0.043432],[1302480000000,0.043432],[1302566400000,0.0433363],[1302652800000,0.0432845],[1302739200000,0.043393],[1302825600000,0.042895],[1302912000000,0.0430893],[1302998400000,0.0430893],[1303084800000,0.0430893],[1303171200000,0.0425527],[1303257600000,0.0426863],[1303344000000,0.0437863],[1303430400000,0.0440362],[1303516800000,0.0440362],[1303603200000,0.0440362],[1303689600000,0.0440362],[1303776000000,0.0440362],[1303862400000,0.0440223],[1303948800000,0.0441242],[1304035200000,0.0445554],[1304121600000,0.0447502]], 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: [[1301616000000, 0.042559],[1301616000000, 0.042559],[1301702400000, 0.042275],[1301788800000, 0.042275],[1301875200000, 0.042275],[1301961600000, 0.042722],[1302048000000, 0.042667],[1302134400000, 0.043267],[1302220800000, 0.043045],[1302307200000, 0.043432],[1302393600000, 0.043432],[1302480000000, 0.043432],[1302566400000, 0.043336],[1302652800000, 0.043284],[1302739200000, 0.043393],[1302825600000, 0.042895],[1302912000000, 0.043089],[1302998400000, 0.043089],[1303084800000, 0.043089],[1303171200000, 0.042553],[1303257600000, 0.042686],[1303344000000, 0.043786],[1303430400000, 0.044036],[1303516800000, 0.044036],[1303603200000, 0.044036],[1303689600000, 0.044036],[1303776000000, 0.044036],[1303862400000, 0.044022],[1303948800000, 0.044124],[1304035200000, 0.044555],[1304121600000, 0.044750]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });