$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1251763200000,2.80316],[1251849600000,2.8],[1251936000000,2.80175],[1252022400000,2.80175],[1252108800000,2.80526],[1252195200000,2.80526],[1252281600000,2.80526],[1252368000000,2.80526],[1252454400000,2.80597],[1252540800000,2.80526],[1252627200000,2.80505],[1252713600000,2.80611],[1252800000000,2.80611],[1252886400000,2.80611],[1252972800000,2.80593],[1253059200000,2.80849],[1253145600000,2.80849],[1253232000000,2.8093],[1253318400000,2.8093],[1253404800000,2.8093],[1253491200000,2.8093],[1253577600000,2.8094],[1253664000000,2.8094],[1253750400000,2.8094],[1253836800000,2.8094],[1253923200000,2.8094],[1254009600000,2.8094],[1254096000000,2.8094],[1254182400000,2.81053],[1254268800000,2.81053]], 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: [[1251763200000, 2.803158],[1251763200000, 2.803158],[1251849600000, 2.800000],[1251936000000, 2.801754],[1252022400000, 2.801754],[1252108800000, 2.805263],[1252195200000, 2.805263],[1252281600000, 2.805263],[1252368000000, 2.805263],[1252454400000, 2.805965],[1252540800000, 2.805263],[1252627200000, 2.805053],[1252713600000, 2.806105],[1252800000000, 2.806105],[1252886400000, 2.806105],[1252972800000, 2.805930],[1253059200000, 2.808491],[1253145600000, 2.808491],[1253232000000, 2.809298],[1253318400000, 2.809298],[1253404800000, 2.809298],[1253491200000, 2.809298],[1253577600000, 2.809404],[1253664000000, 2.809404],[1253750400000, 2.809404],[1253836800000, 2.809404],[1253923200000, 2.809404],[1254009600000, 2.809404],[1254096000000, 2.809404],[1254182400000, 2.810526],[1254268800000, 2.810526]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });