var dataSet = [
['Date','1st Floor', '2nd Floor', '3rd Floor', '4th Floor', '5th Floor',
'6th Floor', '7th Floor', 'Tarrace Floor'],
['A Block', 1, 1, 1, 0, 0, 0, 0, 0],
['B Block', 1, 1, 1, 1, 1, 1, 1, 1],
['C Block', 1, 1, 1, 1, 1, 1, 1, 1],
['D Block', 1, 1, 1, 1, 1, 1, 1, 1],
['E Block', 1, 1, 0, 0, 0, 0, 0, 0],
['F Block', 1, 1, 0, 0, 0, 0, 0, 0],
];

On Wed, Mar 9, 2016 at 2:56 PM, Ekabyte.com <k...@ekabyte.com> wrote:

> Dear Daniel,
>
> *My issue is I can't populate the data from my MYSQL tables. How can
> I achieve this. I have tried using above method, but could
> not achieve this. Because mine is stacked bar chart.*
> *Please help me on this. How I can print the data like  below:*
>
>
> On Tue, Mar 8, 2016 at 8:02 PM, 'Daniel LaLiberte' via Google
> Visualization API <google-visualization-api@googlegroups.com> wrote:
>
>> OK I can see an image of a chart now.  I am not clear on what your
>> problem is.
>>
>> It sounds like you are having trouble getting data from a database, but
>> you are not showing the code you use to do that.  There are several
>> sections in the docs about getting data from a server.  See this one for
>> example:
>> https://google-developers.appspot.com/chart/interactive/docs/php_example
>>
>> On Tue, Mar 8, 2016 at 6:06 AM, Krishna Prasad <k...@ekabyte.com> wrote:
>>
>>> Hi Denial,
>>>
>>> Please find the URL http://pinnacleinfotech.in/vivera/chart.html  its
>>> working fine. Please help me to resolve this.
>>>
>>> On Monday, March 7, 2016 at 7:08:15 PM UTC+5:30, Daniel LaLiberte wrote:
>>>>
>>>> Hi Krishna,
>>>>
>>>> Your URL is the same as before, and results in an error.
>>>>
>>>> On Mon, Mar 7, 2016 at 5:06 AM, Krishna Prasad <k...@ekabyte.com>
>>>> wrote:
>>>>
>>>>
>>>> Now the URL changed as http://pinnacleinfotech.in/vivera/chart.html
>>>> <http://onnetsourcing.com/vivera/chart.html>
>>>>
>>>> On Tuesday, March 1, 2016 at 12:54:16 PM UTC+5:30, krishna prasad wrote:
>>>>
>>>> Hi,
>>>>
>>>> My chart should exactly looks like this
>>>> http://onnetsourcing.com/vivera/chart.html . Here I have entered the
>>>> data in manual format. Please help me the script which istaking the data
>>>> from DB and display in the chart.html page. You can see the codes as below:
>>>>
>>>> <script type="text/javascript" src="https://www.google.com/jsapi";>
>>>> </script>
>>>> <script type="text/javascript">
>>>> google.load("visualization", "1", {packages:["corechart"]});
>>>>
>>>> var dataSet = [
>>>> ['Date','1st Floor', '2nd Floor', '3rd Floor', '4th Floor', '5th
>>>> Floor', '6th Floor', '7th Floor', 'Tarrace Floor'],
>>>> ['A Block', 1, 1, 1, 0, 0, 0, 0, 0],
>>>> ['B Block', 1, 1, 1, 1, 1, 1, 1, 1],
>>>> ['C Block', 1, 1, 1, 1, 1, 1, 1, 1],
>>>> ['D Block', 1, 1, 1, 1, 1, 1, 1, 1],
>>>> ['E Block', 1, 1, 0, 0, 0, 0, 0, 0],
>>>> ['F Block', 1, 1, 0, 0, 0, 0, 0, 0],
>>>> ];
>>>>
>>>> // The first chart
>>>>
>>>> google.setOnLoadCallback(drawChart1);
>>>> function drawChart1() {
>>>> var data = google.visualization.arrayToDataTable( dataSet );
>>>>
>>>> var options = {
>>>> title: 'Project Progress Report\nTotals',
>>>> vAxis: {title: 'Completed Floors', maxValue: 8}, // sets the maximum
>>>> value
>>>> backgroundColor: {strokeWidth: 2 }, // to draw a nice box all around
>>>> the chart
>>>> isStacked: 'true' // = rowstacked in gnuplot
>>>> };
>>>>
>>>> va
>>>>
>>>> ...
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Visualization API" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-visualization-api+unsubscr...@googlegroups.com.
>>> To post to this group, send email to
>>> google-visualization-api@googlegroups.com.
>>> Visit this group at
>>> https://groups.google.com/group/google-visualization-api.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-visualization-api/75e526db-b236-454f-a558-db60f6064825%40googlegroups.com
>>> <https://groups.google.com/d/msgid/google-visualization-api/75e526db-b236-454f-a558-db60f6064825%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
>> dlalibe...@google.com <dlalibe...@google.com>   5CC, Cambridge MA
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Google Visualization API" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> google-visualization-api+unsubscr...@googlegroups.com.
>> To post to this group, send email to
>> google-visualization-api@googlegroups.com.
>> Visit this group at
>> https://groups.google.com/group/google-visualization-api.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJMCXO%3DjXR8sJ%2BeWx%2B-%2BpLb%2B_HqO3mnOV0J_e4NWAXJhpQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJMCXO%3DjXR8sJ%2BeWx%2B-%2BpLb%2B_HqO3mnOV0J_e4NWAXJhpQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAMssE_KMDKHYY2jieH80hBY%3Dfgt0FvCQ%2BKVkoD3NfOtGFTvzrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to