$(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: [[1393632000000,0.043156],[1393718400000,0.043156],[1393804800000,0.043156],[1393891200000,0.044003],[1393977600000,0.043028],[1394064000000,0.041926],[1394150400000,0.04165],[1394236800000,0.041395],[1394323200000,0.041395],[1394409600000,0.041395],[1394496000000,0.041395],[1394582400000,0.041174],[1394668800000,0.041137],[1394755200000,0.042385],[1394841600000,0.042377],[1394928000000,0.042377],[1395014400000,0.042377],[1395100800000,0.043445],[1395187200000,0.044447],[1395273600000,0.0445],[1395360000000,0.044539],[1395446400000,0.04495],[1395532800000,0.04495],[1395619200000,0.04495],[1395705600000,0.045678],[1395792000000,0.046769],[1395878400000,0.047132],[1395964800000,0.047893],[1396051200000,0.048795],[1396137600000,0.048795],[1396224000000,0.048795]], 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: [[1393632000000, 0.043156],[1393632000000, 0.043156],[1393718400000, 0.043156],[1393804800000, 0.043156],[1393891200000, 0.044003],[1393977600000, 0.043028],[1394064000000, 0.041926],[1394150400000, 0.041650],[1394236800000, 0.041395],[1394323200000, 0.041395],[1394409600000, 0.041395],[1394496000000, 0.041395],[1394582400000, 0.041174],[1394668800000, 0.041137],[1394755200000, 0.042385],[1394841600000, 0.042377],[1394928000000, 0.042377],[1395014400000, 0.042377],[1395100800000, 0.043445],[1395187200000, 0.044447],[1395273600000, 0.044500],[1395360000000, 0.044539],[1395446400000, 0.044950],[1395532800000, 0.044950],[1395619200000, 0.044950],[1395705600000, 0.045678],[1395792000000, 0.046769],[1395878400000, 0.047132],[1395964800000, 0.047893],[1396051200000, 0.048795],[1396137600000, 0.048795],[1396224000000, 0.048795]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });