$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1257033600000,0.722917],[1257120000000,0.722917],[1257206400000,0.724012],[1257292800000,0.724841],[1257379200000,0.724842],[1257465600000,0.724352],[1257552000000,0.722825],[1257638400000,0.722825],[1257724800000,0.722825],[1257811200000,0.72262],[1257897600000,0.722743],[1257984000000,0.722704],[1258070400000,0.722823],[1258156800000,0.722789],[1258243200000,0.722789],[1258329600000,0.722789],[1258416000000,0.72246],[1258502400000,0.721882],[1258588800000,0.72122],[1258675200000,0.720891],[1258761600000,0.720989],[1258848000000,0.720989],[1258934400000,0.720989],[1259020800000,0.720735],[1259107200000,0.720677],[1259193600000,0.720304],[1259280000000,0.719229],[1259366400000,0.718851],[1259452800000,0.718851],[1259539200000,0.718851]], 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: [[1257033600000, 0.722917],[1257033600000, 0.722917],[1257120000000, 0.722917],[1257206400000, 0.724012],[1257292800000, 0.724841],[1257379200000, 0.724842],[1257465600000, 0.724352],[1257552000000, 0.722825],[1257638400000, 0.722825],[1257724800000, 0.722825],[1257811200000, 0.722620],[1257897600000, 0.722743],[1257984000000, 0.722704],[1258070400000, 0.722823],[1258156800000, 0.722789],[1258243200000, 0.722789],[1258329600000, 0.722789],[1258416000000, 0.722460],[1258502400000, 0.721882],[1258588800000, 0.721220],[1258675200000, 0.720891],[1258761600000, 0.720989],[1258848000000, 0.720989],[1258934400000, 0.720989],[1259020800000, 0.720735],[1259107200000, 0.720677],[1259193600000, 0.720304],[1259280000000, 0.719229],[1259366400000, 0.718851],[1259452800000, 0.718851],[1259539200000, 0.718851]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });