$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1488326400000,6.67131],[1488412800000,6.6645],[1488499200000,6.63324],[1488585600000,6.66205],[1488672000000,6.66205],[1488758400000,6.66205],[1488844800000,6.64199],[1488931200000,6.61923],[1489017600000,6.61923],[1489104000000,6.57647],[1489190400000,6.57316],[1489276800000,6.57316],[1489363200000,6.57316],[1489449600000,6.61142],[1489536000000,6.61761],[1489622400000,6.60851],[1489708800000,6.73376],[1489795200000,6.72199],[1489881600000,6.72199],[1489968000000,6.72199],[1490054400000,6.75148],[1490140800000,6.8041],[1490227200000,6.79474],[1490313600000,6.83716],[1490400000000,6.86452],[1490486400000,6.86452],[1490572800000,6.86452],[1490659200000,6.93405],[1490745600000,6.93438],[1490832000000,6.85619],[1490918400000,6.85819]], 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: [[1488326400000, 6.671314],[1488326400000, 6.671314],[1488412800000, 6.664502],[1488499200000, 6.633243],[1488585600000, 6.662052],[1488672000000, 6.662052],[1488758400000, 6.662052],[1488844800000, 6.641986],[1488931200000, 6.619230],[1489017600000, 6.619230],[1489104000000, 6.576474],[1489190400000, 6.573163],[1489276800000, 6.573163],[1489363200000, 6.573163],[1489449600000, 6.611416],[1489536000000, 6.617607],[1489622400000, 6.608515],[1489708800000, 6.733764],[1489795200000, 6.721994],[1489881600000, 6.721994],[1489968000000, 6.721994],[1490054400000, 6.751479],[1490140800000, 6.804099],[1490227200000, 6.794736],[1490313600000, 6.837161],[1490400000000, 6.864524],[1490486400000, 6.864524],[1490572800000, 6.864524],[1490659200000, 6.934053],[1490745600000, 6.934384],[1490832000000, 6.856191],[1490918400000, 6.858190]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });