$(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: [[1251763200000,0.0419419],[1251849600000,0.0417415],[1251936000000,0.041085],[1252022400000,0.0417832],[1252108800000,0.0415618],[1252195200000,0.0415618],[1252281600000,0.0415618],[1252368000000,0.0420836],[1252454400000,0.0427119],[1252540800000,0.0428031],[1252627200000,0.0427055],[1252713600000,0.0427008],[1252800000000,0.0427008],[1252886400000,0.0427008],[1252972800000,0.0424463],[1253059200000,0.0429929],[1253145600000,0.0435182],[1253232000000,0.0435282],[1253318400000,0.043416],[1253404800000,0.043416],[1253491200000,0.043416],[1253577600000,0.0430898],[1253664000000,0.0436005],[1253750400000,0.0436335],[1253836800000,0.0437699],[1253923200000,0.0435036],[1254009600000,0.0435036],[1254096000000,0.0435036],[1254182400000,0.0435165],[1254268800000,0.0432341]], 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, 0.041942],[1251763200000, 0.041942],[1251849600000, 0.041742],[1251936000000, 0.041085],[1252022400000, 0.041783],[1252108800000, 0.041562],[1252195200000, 0.041562],[1252281600000, 0.041562],[1252368000000, 0.042084],[1252454400000, 0.042712],[1252540800000, 0.042803],[1252627200000, 0.042706],[1252713600000, 0.042701],[1252800000000, 0.042701],[1252886400000, 0.042701],[1252972800000, 0.042446],[1253059200000, 0.042993],[1253145600000, 0.043518],[1253232000000, 0.043528],[1253318400000, 0.043416],[1253404800000, 0.043416],[1253491200000, 0.043416],[1253577600000, 0.043090],[1253664000000, 0.043601],[1253750400000, 0.043633],[1253836800000, 0.043770],[1253923200000, 0.043504],[1254009600000, 0.043504],[1254096000000, 0.043504],[1254182400000, 0.043516],[1254268800000, 0.043234]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });