<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to connect with Google Chart</title><link>https://www.aras.com/community/f/development/3089/how-to-connect-with-google-chart</link><description>Hello Friends,

Can you please share a sample code or way to connect with google chart.

Thank You
Abhishek Srivastava</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to connect with Google Chart</title><link>https://www.aras.com/community/thread/4475?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 08:07:34 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:127f0923-e209-46d1-91ff-0e4b2cb11304</guid><dc:creator>Emil Ringborg</dc:creator><description>&lt;p&gt;Thank you Christopher.&amp;nbsp; This workaround is working fine for me as well.&lt;/p&gt;
&lt;p&gt;Great support!&amp;nbsp; Fast and verry helpful.&amp;nbsp; :-)&lt;/p&gt;
&lt;p&gt;//Emil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect with Google Chart</title><link>https://www.aras.com/community/thread/4456?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 19:19:18 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:f5af30fa-42f8-474c-9aac-24d117cbe9cc</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hi Emil,&lt;/p&gt;
&lt;p&gt;The blog post linked to above can be found &lt;a href="/b/english/posts/how-to-integrate-google-charts-cloud-based-analytics-into-aras"&gt;here&lt;/a&gt;. However, please note that it&amp;#39;s quite old, and I don&amp;#39;t believe it covers running google chart inside a report like this.&lt;/p&gt;
&lt;p&gt;I was able to reproduce the issue that you&amp;#39;re seeing in one of my local instances. The underlying issue for seemed to be that the google.charts.load function that we call at the top would never indicate that it had finished loading, so my callback function never ran to actually draw the chart.&lt;/p&gt;
&lt;p&gt;I was able to resolve this in a roundabout way by instead manually checking within my drawChart() function if each piece had been loaded. If not, I would set a timeout to wait a bit and check again later like the sample code below. Also note that i was using the sample code found &lt;a href="https://developers.google.com/chart/interactive/docs/basic_load_libs"&gt;here &lt;/a&gt;to just render a static pie chart. You&amp;#39;ll need to update the checks in your code to instead look for the Gantt constructor.&amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;function drawChart() {&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &lt;strong&gt;// Check that everything is loaded&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; if (!google.visualization || !google.visualization.DataTable || !google.visualization.PieChart) { &lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // If not, wait 50 ms and try again&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setTimeout(drawChart, 50); &lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return; &lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; }&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; // Define the chart to be drawn.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; var data = new google.visualization.DataTable();&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; data.addColumn(&amp;#39;string&amp;#39;, &amp;#39;Element&amp;#39;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; data.addColumn(&amp;#39;number&amp;#39;, &amp;#39;Percentage&amp;#39;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; data.addRows([&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ['Nitrogen', 0.78],&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ['Oxygen', 0.21],&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ['Other', 0.01]&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; ]);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; // Instantiate and draw the chart.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; var chart = new google.visualization.PieChart(document.getElementById(&amp;#39;myPieChart&amp;#39;));&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; chart.draw(data, null);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;google.charts.load(&amp;#39;current&amp;#39;, {packages: ['corechart']});&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;// Manually call our drawChart() function&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;drawChart();&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Christopher Gillis&lt;/p&gt;
&lt;p&gt;Aras Labs Software Engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect with Google Chart</title><link>https://www.aras.com/community/thread/4414?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 08:46:24 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:127acc56-1c6e-4ad8-adc7-6d9fbf055c3c</guid><dc:creator>Emil Ringborg</dc:creator><description>&lt;p&gt;This is what im trying to do.&amp;nbsp; The report calls this following xslt.&amp;nbsp; The chart is not drawn and in chrome debug it seams that &lt;span&gt;google.visualization is uninitialized. If run this outside Aras is works without any issues.&amp;nbsp; Please advise.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:stylesheet version=&amp;quot;1.0&amp;quot; xmlns:xsl=&amp;quot;&lt;a href="http://www.w3.org/1999/XSL/Transform"&gt;&amp;quot;&amp;gt;www.w3.org/.../Transform&amp;quot;&amp;gt;&lt;/a&gt;&lt;br /&gt;&amp;lt;xsl:template match=&amp;quot;/&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;html&amp;gt;&lt;br /&gt; &lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt; &amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;&lt;a href="https://www.gstatic.com/charts/loader.js"&gt;&amp;quot;&amp;gt;www.gstatic.com/.../script&amp;gt;&lt;/a&gt;&lt;br /&gt; &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt; google.charts.load(&amp;#39;current&amp;#39;, {&amp;#39;packages&amp;#39;:['gantt']});&lt;br /&gt; google.charts.setOnLoadCallback(drawChart);&lt;/p&gt;
&lt;p&gt;function daysToMilliseconds(days) {&lt;br /&gt; return days * 24 * 60 * 60 * 1000;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;function drawChart() {&lt;/p&gt;
&lt;p&gt;var data = new google.visualization.DataTable();&lt;br /&gt; data.addColumn(&amp;#39;string&amp;#39;, &amp;#39;Task ID&amp;#39;);&lt;br /&gt; data.addColumn(&amp;#39;string&amp;#39;, &amp;#39;Task Name&amp;#39;);&lt;br /&gt; data.addColumn(&amp;#39;date&amp;#39;, &amp;#39;Start Date&amp;#39;);&lt;br /&gt; data.addColumn(&amp;#39;date&amp;#39;, &amp;#39;End Date&amp;#39;);&lt;br /&gt; data.addColumn(&amp;#39;number&amp;#39;, &amp;#39;Duration&amp;#39;);&lt;br /&gt; data.addColumn(&amp;#39;number&amp;#39;, &amp;#39;Percent Complete&amp;#39;);&lt;br /&gt; data.addColumn(&amp;#39;string&amp;#39;, &amp;#39;Dependencies&amp;#39;);&lt;/p&gt;
&lt;p&gt;data.addRows([&lt;br /&gt; ['Research', 'Find sources',&lt;br /&gt; new Date(2015, 0, 1), new Date(2015, 0, 5), null, 100, null],&lt;br /&gt; ['Write', 'Test',&lt;br /&gt; null, new Date(2015, 0, 9), daysToMilliseconds(3), 25, 'Research,Outline'],&lt;br /&gt; ['Cite', 'Create bibliography',&lt;br /&gt; null, new Date(2015, 0, 7), daysToMilliseconds(1), 20, 'Research'],&lt;br /&gt; ['Complete', 'Hand in paper',&lt;br /&gt; null, new Date(2015, 0, 10), daysToMilliseconds(1), 0, 'Cite,Write'],&lt;br /&gt; ['Outline', 'Outline paper',&lt;br /&gt; null, new Date(2015, 0, 6), daysToMilliseconds(1), 100, 'Research']&lt;br /&gt; ]);&lt;/p&gt;
&lt;p&gt;var options = {&lt;br /&gt; height: 275&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;var chart = new google.visualization.Gantt(document.getElementById(&amp;#39;chart_div&amp;#39;));&lt;/p&gt;
&lt;p&gt;chart.draw(data, options);&lt;br /&gt; }&lt;br /&gt; &amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt; &amp;lt;h2&amp;gt;Testing Google Gantt Chart&amp;lt;/h2&amp;gt;&lt;br /&gt; &amp;lt;div id=&amp;quot;chart_div&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/html&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&amp;lt;/xsl:stylesheet&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect with Google Chart</title><link>https://www.aras.com/community/thread/4413?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 08:30:05 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:eea6a5f2-4d12-47b0-9a2f-0455e509d2ac</guid><dc:creator>Emil Ringborg</dc:creator><description>&lt;p&gt;Recommended link&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://community.aras.com/en/integrate-google-charts-cloud-based-analytics-aras/" rel="noopener noreferrer" target="_blank"&gt;http://community.aras.com/en/integrate-google-charts-cloud-based-analytics-aras/&lt;/a&gt;&amp;nbsp;do not seam to be valid anymore.&amp;nbsp; Im also having issues getting google charts to work i a report.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect with Google Chart</title><link>https://www.aras.com/community/thread/9?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2016 08:05:00 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:f1979550-257e-42e7-a3c0-49828e858fcb</guid><dc:creator>Zahar Chernov</dc:creator><description>Abhishek Srivastava,

I don&amp;#39;t think this is Aras related question as Google Chart API. I have pointed you to the example how to use Google Chart API on Aras forms, but I&amp;#39;m not sure what you can do with this API. I think you need to keep google it&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect with Google Chart</title><link>https://www.aras.com/community/thread/7?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 05:55:43 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:45db8f52-eaff-43b0-880b-a40ae6c79245</guid><dc:creator>Abhishek Srivastava</dc:creator><description>Hi Zahar,

As per your link we can work over the form but is that possible to create report with Google Chart (Pie Chart).

For Example:
MACHINE|      |MFG HRS |	|CAPACITY|
Machine No 1  |    20  |        |  24    |
Machine No 2  |    18  |  	|  24    |
Machine No 3  |    22  |	|  24    |

I want to create Report with above table with Pie Chart.

Thank You
Abhishek Srivastava&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect with Google Chart</title><link>https://www.aras.com/community/thread/8?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2016 17:53:26 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:4a20e888-6e50-46f7-9bd0-38b958a3076e</guid><dc:creator>Zahar Chernov</dc:creator><description>You can read this post from one of the Aras Partners:

&lt;a href="http://community.aras.com/en/integrate-google-charts-cloud-based-analytics-aras/" target="_blank"&gt;http://community.aras.com/en/integrate-google-charts-cloud-based-analytics-aras/&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>