html kod na online cenu zlata
<div itemscope="itemscope" itemtype="schema.org/CreativeWork" style="margin:1em 0;height:400px" id="svg_chart">
<meta itemprop="license" content="https://creativecommons.org/licenses/by-sa/4.0/" />
<meta itemprop="fileFormat" content="svg+xml" />
<meta itemprop="thumbnailUrl" content="https://g.kurzy.cz/graf-komodita-online/zlato-czk-670-400-1den-jednotka-1g.png" />
<embed itemprop="image" src="https://g.kurzy.cz/graf-komodita-online/zlato-czk-670-400-1den-jednotka-1g-hodnoty.svg" type="image/svg+xml" width="670" height="400" title="Vývoj kurzu Zlato CZK - graf" />
</div>
<div style="width:670px;height:400px;margin:1em 0;display:none" id="html5_chart">
<div id="container" style="">Loading....</div>
</div>
<script>
$(function(){
var hchart
function renderchart() {
$.getJSON('https://idb.kurzy.cz/ch-1714-czk-1g/online?callback=?', function (hdata) {
Highcharts.setOptions({
lang: {
loading: "Načítám...",
months: ["Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"],
weekdays: ["Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota"],
shortMonths: ["Led", "Úno", "Bře", "Dub", "Kvě", "Čvn", "Čvc", "Srp", "Zář", "Říj", "Lis", "Pro"],
exportButtonTitle: "Export",
printButtonTitle: "Tisk",
rangeSelectorFrom: "Od",
rangeSelectorTo: "Do",
rangeSelectorZoom: "Období",
downloadPNG: "Stáhnout obrázek PNG",
downloadJPEG: " Stáhnout obrázek JPEG",
downloadPDF: " Stáhnout obrázek PDF",
downloadSVG: " Stáhnout obrázek SVG",
printChart: "Vytisknout graf",
resetZoom: "Zrušit výběr",
resetZoomTitle: "Zrušit",
thousandsSep: "",
decimalPoint: "."
},
global: {
timezoneOffset: -120.0
}
});
var option = {
credits: false,
title: {
text: "Zlato CZK 1g",
style: {
color: "#496391"
}
},
navigator: {
enabled: true
},
xAxis: {
gridLineDashStyle: "longdash",
gridLineWidth: 1
},
chart: {
renderTo: "container"
},
yAxis: {
gridLineDashStyle: "longdash"
},
series: [{
name: "Zlato CZK 1g",
data: hdata,
color: "#496391",
tooltip: {
valueDecimals: 3,
pointFormat: "{series.name}<br/><b>{point.y}</b><br/>"
},
animation: false
}],
rangeSelector: {
buttons: [{
type: "day",
count: 1,
text: "1d"
}, {
type: "day",
count: 2,
text: "2d"
}, {
type: "day",
count: 3,
text: "3d"
}, {
type: "day",
count: 5,
text: "5d"
}],
selected: 0,
inputEnabled: false
}
};
hchart = new Highcharts.StockChart(option);
graf_logo('container',335,0.3);
});
}
renderchart();
});
</script>
<script src="https://code.highcharts.com/stock/6.2.0/highstock.js"></script>
<script src="https://code.highcharts.com/stock/6.2.0/modules/exporting.js" defer></script>
<script src="https://s.kurzy.cz/l/g.js"></script>