7
पर छवियां जोड़ना मैं Google विज़ुअलाइज़ेशन चार्ट में छवियों को कैसे जोड़ सकता हूं।Google विज़ुअलाइज़ेशन चार्ट
नीचे स्क्रिप्ट जो मैं कोशिश कर रहा हूँ
google.setOnLoadCallback(drawChart);
function drawChart() {
var container = document.getElementById('example4.2');
var chart = new google.visualization.Timeline(container);
var dataTable = new google.visualization.DataTable();
dataTable.addColumn({ type: 'string', id: 'Role' });
dataTable.addColumn({ type: 'string', id: 'Name' });
dataTable.addColumn({ type: 'date', id: 'Start' });
dataTable.addColumn({ type: 'date', id: 'End' });
dataTable.addRows([
[ 'President', 'George Washington', new Date(0,0,0,12,0,0), new Date(0,0,0,12,3,0) ],
[ 'President', '<img class="devsite-avatar" src="http://i.stack.imgur.com/FVDLV.jpg?s=32&g=1">John Adams', new Date(0,0,0,12,3,3), new Date(0,0,0,12,14,0) ],
[ 'President', 'Thomas Jefferson', new Date(0,0,0,12,15,1), new Date(0,0,0,12,28,0) ],
[ 'President', '', new Date(0,0,0,13,0, 0), new Date(0,0,0,13,0,0) ]
\t
\t ]);
var options = {
timeline: { groupByRowLabel: true },
\t allowHTML: true,
\t avoidOverlappingGridLines: false
};
chart.draw(dataTable, options);
}
<script type="text/javascript" src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization',
'version':'1','packages':['timeline']}]}"></script>
<div id="example4.2" style="height: 200px;"></div>
कृपया मेरी मदद को समझने के लिए मैं यहाँ क्या याद आ रही है है।
'new google.visualization.PatternFormat' का उपयोग करें, यह छवि के लिए काम करता है –