$(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: 'Курс SKK, грн'}, 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: 'Курс SKK', data: [[1139184000000,0.162031],[1139270400000,0.162031],[1139356800000,0.160893],[1139443200000,0.160259],[1139529600000,0.160974],[1139616000000,0.161347],[1139702400000,0.161347],[1139788800000,0.161347],[1139875200000,0.1599],[1139961600000,0.16],[1140048000000,0.160757],[1140134400000,0.160243],[1140220800000,0.160418],[1140307200000,0.160418],[1140393600000,0.160418],[1140480000000,0.161555],[1140566400000,0.161354],[1140652800000,0.160152],[1140739200000,0.161798],[1140825600000,0.161123],[1140912000000,0.161123],[1140998400000,0.161123],[1141084800000,0.160588]], 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: [[1139184000000, 0.162031],[1139184000000, 0.162031],[1139270400000, 0.162031],[1139356800000, 0.160893],[1139443200000, 0.160259],[1139529600000, 0.160974],[1139616000000, 0.161347],[1139702400000, 0.161347],[1139788800000, 0.161347],[1139875200000, 0.159900],[1139961600000, 0.160000],[1140048000000, 0.160757],[1140134400000, 0.160243],[1140220800000, 0.160418],[1140307200000, 0.160418],[1140393600000, 0.160418],[1140480000000, 0.161555],[1140566400000, 0.161354],[1140652800000, 0.160152],[1140739200000, 0.161798],[1140825600000, 0.161123],[1140912000000, 0.161123],[1140998400000, 0.161123],[1141084800000, 0.160588]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });