$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1109635200000,0.19129],[1109721600000,0.19123],[1109808000000,0.19129],[1109894400000,0.19112],[1109980800000,0.19091],[1110067200000,0.19147],[1110153600000,0.19147],[1110240000000,0.19147],[1110326400000,0.19147],[1110412800000,0.19224],[1110499200000,0.19288],[1110585600000,0.19284],[1110672000000,0.19284],[1110758400000,0.19284],[1110844800000,0.1927],[1110931200000,0.19258],[1111017600000,0.19258],[1111104000000,0.19275],[1111190400000,0.19254],[1111276800000,0.19254],[1111363200000,0.19254],[1111449600000,null],[1111536000000,0.19186],[1111622400000,0.19107],[1111708800000,0.19067],[1111795200000,0.19058],[1111881600000,0.19058],[1111968000000,0.19058],[1112054400000,0.18983],[1112140800000,0.18975],[1112227200000,0.18978]], 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: [[1109635200000, 0.191290],[1109635200000, 0.191290],[1109721600000, 0.191230],[1109808000000, 0.191290],[1109894400000, 0.191120],[1109980800000, 0.190910],[1110067200000, 0.191470],[1110153600000, 0.191470],[1110240000000, 0.191470],[1110326400000, 0.191470],[1110412800000, 0.192240],[1110499200000, 0.192880],[1110585600000, 0.192840],[1110672000000, 0.192840],[1110758400000, 0.192840],[1110844800000, 0.192700],[1110931200000, 0.192580],[1111017600000, 0.192580],[1111104000000, 0.192750],[1111190400000, 0.192540],[1111276800000, 0.192540],[1111363200000, 0.192540],[1111536000000, 0.191860],[1111622400000, 0.191070],[1111708800000, 0.190670],[1111795200000, 0.190580],[1111881600000, 0.190580],[1111968000000, 0.190580],[1112054400000, 0.189830],[1112140800000, 0.189750],[1112227200000, 0.189780]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });