[visualization-api] Re: Customise vertical axis lebels in Bar Graph to display image along with text

2014-07-24 Thread Andrew Gallant
Adding images to the labels is not supported, sorry. On Thursday, July 24, 2014 5:32:48 AM UTC-4, Dev wrote: Hi All, In Bar Chart is it possible to display image along with label for vertical axis? Please find attached image displaying vertical axis with red/green/yellow image along with

[visualization-api] Re: Place a marker on a horizontal bar chart by using google.visualization.BarChart and not ImageChart

2014-07-24 Thread Andrew Gallant
What kind of marker do you want to add? There may be a work-around to do what you want. On Thursday, July 24, 2014 6:30:16 AM UTC-4, Dev wrote: How to set marker using package 'corechart' and google.visualization.BarChart? Need options to set for marker using this combination. Don't want

[visualization-api] Re: Help! on Annotation Chart creation from Mysql DB and PHP page

2014-07-24 Thread Andrew Gallant
Did you try my answer to your previous question https://groups.google.com/d/msg/google-visualization-api/JUM29eTDuUQ/5WB8kO7IKaAJ ? On Thursday, July 24, 2014 8:52:12 AM UTC-4, Romain Bernard wrote: Hi Everyone,First of all, I'd like to thank you all for being so helpful!Here is my concern.

[visualization-api] Re: User input to update Google Charts using PHP MySQL

2014-07-24 Thread Andrew Gallant
'% . $Minute_B . %')'); Am I going in the right direction? On Wednesday, July 23, 2014 5:03:08 PM UTC-7, Andrew Gallant wrote: Are you looking to query your database based on these inputs, or do you want to filter data you've already loaded client-side? If you want to do the latter, may I

[visualization-api] Re: Overlapping point in Bubble Chart

2014-07-24 Thread Andrew Gallant
You can use a size column to change the size of bubbles, which can indicate when you have multiple values at a given point. Example: http://jsfiddle.net/asgallant/LqQrE/ On Thursday, July 24, 2014 11:48:55 AM UTC-4, Cicely Behne wrote: I have used the Google Bubble Chart to create a risk

[visualization-api] Re: BAR CHART COLOUR CHANGE ACCORDING TO RANGE

2014-07-24 Thread Andrew Gallant
You can use a DataView to add in a style role column that sets the color according to the value of the data point: // assumes you have a DataTable data with two columns var view = new google.visualization.DataView(data); view.setColumns([0, 1, { type: 'string', role: 'style', calc:

Re: [visualization-api] Re: Column chart - Bar color

2014-07-22 Thread Andrew Gallant
are able to access it. On Mon, Jul 21, 2014 at 9:03 PM, Andrew Gallant asgall...@gmail.com javascript: wrote: Your server will not affect client-side performance. Depending on how good the connection between your server and clients is, you may be able to set up a system that handles all

Re: [visualization-api] Re: Column chart - Bar color

2014-07-21 Thread Andrew Gallant
. Will a better server/ workstation increase the performance? Please suggest. On Sat, Jul 12, 2014 at 8:41 PM, Andrew Gallant asgall...@gmail.com javascript: wrote: With 14000 data points, the chart would probably draw quite slow. I think the only way you can increase draw speed

[visualization-api] Re: Y Axis ToolTips (Line Chart)

2014-07-21 Thread Andrew Gallant
The API won't do this, but you should be able to use onmouseover and onmouseout event handlers to spawn and destroy your own tooltips. google.visualization.events.addListener(myChart, 'onmouseover', function (event) { // parse event to determine if the moused over element is an axis label

[visualization-api] Re: Adding a total annotation to stack columns

2014-07-21 Thread Andrew Gallant
Since you are already annotating all of your data points, you need to get a little hacky. Create another series that is the sum total of all other series using a DataView. Switch your chart type to ComboChart, and make this new series a line type series with point size 0, line width 0,

[visualization-api] Re: Google chart not working on IE10

2014-07-18 Thread Andrew Gallant
I don't see anything in your javascript that would cause any problems in IE. Try adding a DOCTYPE declaration; older versions of IE require one, maybe the newer versions do too. !DOCTYPE html On Thursday, July 17, 2014 11:42:23 PM UTC-4, cs 101 wrote: My google chart won't work on any

[visualization-api] Re: left values are so big making graphs smaller(I think)

2014-07-18 Thread Andrew Gallant
You can manually format your axis value by using the vAxis.ticks option, which takes an array of numbers or objects. Each element in the array specifies a tick mark on the axis; if the element is a number, that number will appear (formatted by the vAxis.format option) on the axis with a

[visualization-api] Re: cssClassNames not working for chart wrapper

2014-07-17 Thread Andrew Gallant
Don't put quotes around csses: table = new google.visualization.ChartWrapper( { 'chartType': 'Table', 'containerId': 'table_chart_div', 'options': { 'page':'enable', 'pageSize':15, 'allowHtml': true,

[visualization-api] Re: Question about creating a timeline

2014-07-16 Thread Andrew Gallant
The Timeline will create multiple rows of bars per row if there are overlapping events in that row. As an example, if you change the start year for John Adams to 1796, it spills over to a new line, since it overlaps with George Washington: http://jsfiddle.net/asgallant/khCws/ On Wednesday,

[visualization-api] Re: Blank page - issue rendering charts

2014-07-16 Thread Andrew Gallant
If it runs fine in jsfiddle, then it is likely that there is another component in your page that is interfering and causing problems. Try disabling all other features and javascript on your page and re-enabling them one by one until it fails again. On Wednesday, July 16, 2014 12:39:42 PM

[visualization-api] Re: Need Best of Scatter and Bubble Charts...Combine capabilities?

2014-07-16 Thread Andrew Gallant
The pointSize option controls all of the points, it isn't controllable from point to point. On Wednesday, July 16, 2014 8:15:31 PM UTC-4, Mike Hogan wrote: I believe that the term for bubble size is point size not sure why it isn't supported in scatter, but is in the others... On

[visualization-api] Re: Table getSelection()

2014-07-15 Thread Andrew Gallant
You need to reference the data as seen by the table by calling the ChartWrapper's #getDataTable method: var dt = myTable.getDataTable(); var selection = myTable.getChart().getSelection(); for (var i = 0; i selection.length; i++) { var value = dt.getValue(selection[i].row, 0); // get value

[visualization-api] Re: Blank page - issue rendering charts

2014-07-15 Thread Andrew Gallant
This probably isn't the source of your problem, but you have an extra pair of brackets in the google loader's callback: function(){{drawVisualization({0},'{1}','{2}');}} If you open the page and view the page source, is your data output in the drawVisualization call? On Tuesday, July 15, 2014

[visualization-api] Re: dashboard control category filter sort descending

2014-07-13 Thread Andrew Gallant
No, you can't change the order that the filter sorts the entries in, but you can sort your DataTable and turn off sorting in the control; that should do the trick. On Saturday, July 12, 2014 7:03:40 PM UTC-4, qdkid wrote: By default, dashboard control=category filter sorts the field

[visualization-api] Re: format timeofday and datetime in googlechart

2014-07-13 Thread Andrew Gallant
I suggest modifying your query like this: $result = $mysqli-query(SELECT (DATE_FORMAT(date,'%k')) hour, (DATE_FORMAT(date,'%i')) minute, analog4 rlsolar, analog3 vlsolar FROM t_data WHERE date(date) = date(date_sub(now(), INTERVAL $wert day)) and frame = \frame1\); and then inputting your

Re: [visualization-api] Re: Column chart - Bar color

2014-07-12 Thread Andrew Gallant
wrote: Aproxx 14000 points for 1 month data. -- From: Andrew Gallant Sent: 12-07-2014 AM 10:38 To: google-visua...@googlegroups.com javascript: Subject: Re: [visualization-api] Re: Column chart - Bar color If the problem is with the chart drawing

[visualization-api] Re: Both Sort and Filter View

2014-07-12 Thread Andrew Gallant
I would create a DataView based on your original DataTable, and sort that. The pass the view to the Dashboard instead of the DataTable. On Saturday, July 12, 2014 4:43:12 PM UTC-4, AM wrote: What if I needed to filter the data for the first chart? If I already have that chart in in the

Re: [visualization-api] Re: Column chart - Bar color

2014-07-11 Thread Andrew Gallant
, the indicators and the sliders are generated quickly, but the scatter chart displays after 10-12 secs. What I was thinking, is there a way to minify my self written js pages. Will this help? On Fri, Jul 11, 2014 at 7:12 PM, Andrew Gallant asgall...@gmail.com javascript: wrote: How much

[visualization-api] Re: display hour text but not all hours

2014-07-10 Thread Andrew Gallant
:25 PM UTC-5, Andrew Gallant wrote: Can you also post the code where the chart is drawn? I'm trying to replicate your setup as exactly as I can (as far as the chart is concerned) so I can figure out what we need to do to get this to display the way you want. On Monday, July 7, 2014 1:59

[visualization-api] Re: Add an event listener for the legend of a chart

2014-07-10 Thread Andrew Gallant
Yes, those are the column indices. On Thursday, July 10, 2014 2:37:15 PM UTC-4, Kyle Adams wrote: Actually what selection[0].column gave me was 1 or 2 based on which of the legend entries I was clicking, which was exactly what I was looking for. -- You received this message because you are

[visualization-api] Re: How do I alter the labels for the legend entries in a line chart?

2014-07-10 Thread Andrew Gallant
The legend labels are derived from the column labels in the DataTable, so if you want to change the legend, you need to alter the column labels. You can do that by calling the #setColumnLabel method on your joined DataTable: joinedData.setColumnLabel(1, 'John'); joinedData.setColumnLabel(2,

[visualization-api] Re: Turning data retrieved from mysql database into chart.

2014-07-09 Thread Andrew Gallant
No. If you put the javascript in a separate file, the PHP code would not work. On Wednesday, July 9, 2014 11:17:28 AM UTC-4, khalil negron wrote: is the script part suppose to go into a different file ? On Monday, July 7, 2014 2:12:25 PM UTC-4, khalil negron wrote: Trying to turn this

[visualization-api] Re: Turning mydql data into chart

2014-07-09 Thread Andrew Gallant
Open the page, enter 2013 into the date field, and click the submit button. When the page reloads, view the page source, copy it, and paste it here so I can see what your server is rendering. On Wednesday, July 9, 2014 12:32:04 PM UTC-4, khalil negron wrote: Here is my code for some reason I

[visualization-api] Re: Sort arrow bug?

2014-07-09 Thread Andrew Gallant
No, it is not a bug. The Table has no way of knowing how the data is sorted (or even if it is sorted at all) when you draw it, unless you specify the sorting in the Table's options, eg: table.draw(data, { sortColumn: 1, sortAscending: false }); The sortColumn option tells the Table

[visualization-api] Re: Add an event listener for the legend of a chart

2014-07-09 Thread Andrew Gallant
The select event fires when you click the legend entries. With most charts, you can distinguish a legend click from a data click by checking the row property of the selected value: data points will have a row index, legend entries will have a null row.

[visualization-api] Re: Add an event listener for the legend of a chart

2014-07-09 Thread Andrew Gallant
As I pointed out in the code, selection[0].column contains the DataTable column index of the selected series. On Wednesday, July 9, 2014 8:23:40 PM UTC-4, Kyle Adams wrote: How do I determine which legend entry was clicked? For instance, each legend entry corresponds to one of two data

[visualization-api] Re: display hour text but not all hours

2014-07-08 Thread Andrew Gallant
, Andrew Gallant wrote: Can you also post the code where the chart is drawn? I'm trying to replicate your setup as exactly as I can (as far as the chart is concerned) so I can figure out what we need to do to get this to display the way you want. On Monday, July 7, 2014 1:59:58 AM UTC-4

[visualization-api] Re: Two tables with same columns in single chart

2014-07-08 Thread Andrew Gallant
Neither the join method nor the charts care what the column labels are; the chart should draw fine if you join those two tables. On Tuesday, July 8, 2014 2:50:05 PM UTC-4, Kyle Adams wrote: I've seen that you can use the join method to merge two tables to create a chart out of them, but will

[visualization-api] Re: display hour text but not all hours

2014-07-07 Thread Andrew Gallant
it is Andrew. Sorry, I was all day out in my garden. :) https://gist.github.com/c0debreaker/4e4944c382ac44757db4 On Sunday, July 6, 2014 2:37:42 PM UTC-5, Andrew Gallant wrote: Can you post a sample of the jsonData contents? On Sunday, July 6, 2014 2:44:07 AM UTC-4, Neil Camara wrote: Hi

Re: [visualization-api] Re: Display a vertical line that will move with the mouse

2014-07-07 Thread Andrew Gallant
, Andrew Gallant asgall...@gmail.com javascript: wrote: First, this won't work: annotation: { newColInd: { style: 'line' } } That creates a object with a key newColInd, when you want the key to be the value of the variable newColInd. Try this: var annotaionOption

[visualization-api] Re: Turning data retrieved from mysql database into chart.

2014-07-07 Thread Andrew Gallant
Try this: $data = array(array('Server, Month, Year', 'Number of Toner Cartridges Used')); while($row = mysqli_fetch_array($result)) { echo tr; echo td . $row[0] . /td; echo td . $row[1] . /td; echo /tr; $data[] = array($row[0], $row[1]); } Then, in javascript: function drawChart () { var

[visualization-api] Re: embed charts into wordpress posts

2014-07-06 Thread Andrew Gallant
the jsapi script in order to load the API, and a target div in your post to draw the chart in. On Saturday, July 5, 2014 9:26:48 PM UTC-4, Joseph wrote: i can embed javascript into my posts, do you know how to do other stuffs please? On Sunday, July 6, 2014 2:21:36 AM UTC+1, Andrew Gallant wrote

[visualization-api] Re: display hour text but not all hours

2014-07-06 Thread Andrew Gallant
at the bottom center of the chart(where y-axis text where). An example text that I am seeing on the drawing is June 2014. Thanks a lo! On Saturday, July 5, 2014 10:40:40 AM UTC-5, Andrew Gallant wrote: The short answer is yes, you can display hours like that. How you go about it depends

[visualization-api] Re: Display a vertical line that will move with the mouse

2014-07-06 Thread Andrew Gallant
First, this won't work: annotation: { newColInd: { style: 'line' } } That creates a object with a key newColInd, when you want the key to be the value of the variable newColInd. Try this: var annotaionOption = {}; annotaionOption[newColInd] = {style: 'line'}; and then set the

Re: [visualization-api] Re: datarow - Multiple values for a single key

2014-07-06 Thread Andrew Gallant
. On Sunday, July 6, 2014 9:30:14 AM UTC-4, Kévin LABILLE wrote: Oh okay. Makes sense ! What if I want to color every country a different color ? Is there a way to do that ? Thanks ! KL 2014-07-05 20:14 GMT-05:00 Andrew Gallant asgall...@gmail.com javascript:: You can have a list

[visualization-api] Re: Gauge redraw keeps rendering smaller, and without animation

2014-07-06 Thread Andrew Gallant
Are you redrawing the same Gauge object or are you creating new Gauge objects on each draw? Since the Gauge isn't animating, it sounds like you are doing the latter. The size changing problem is likely caused by not setting the Gauge's height and width options. On Sunday, July 6, 2014

[visualization-api] Re: display hour text but not all hours

2014-07-05 Thread Andrew Gallant
The short answer is yes, you can display hours like that. How you go about it depends on how your data is structured. Are you using the timeofday or datetime data types, or are you using string or number types? If you provide a code sample for generating your chart, I can work with you to

[visualization-api] Re: embed charts into wordpress posts

2014-07-05 Thread Andrew Gallant
That site doesn't appear to use the Google Visualization API, so it is not a good example to work from if you are intent on using this API. I have not tried to implement any charts in Wordpress, but my understanding is that you have to have a specific set of options enabled in the Wordpress

[visualization-api] Re: datarow - Multiple values for a single key

2014-07-05 Thread Andrew Gallant
You can have a list of names in the tooltip, but you can't add line breaks, so they would have to be separated some other way. On Saturday, July 5, 2014 7:12:56 PM UTC-4, Kévin LABILLE wrote: Hello, I would like to display a worldmap where a mouse hover over a country would display a list

[visualization-api] Re: embed charts into wordpress posts

2014-07-05 Thread Andrew Gallant
you gonna find the javascript codes of google visualization as well as embeded file like https://www.google.com/jsapi as so on On Saturday, July 5, 2014 10:57:20 PM UTC+1, Andrew Gallant wrote: That site doesn't appear to use the Google Visualization API, so it is not a good example to work

[visualization-api] Re: Polynomial trendline equations appear incorrect

2014-07-04 Thread Andrew Gallant
Looks like you've found a bug; the trendline equations seem to be completely wrong for all polynomial types. I filed a bug report https://code.google.com/p/google-visualization-api-issues/issues/detail?id=1658 on this; you can star the issue to get updates on a fix. On Thursday, July 3, 2014

[visualization-api] Re: Both Sort and Filter View

2014-07-04 Thread Andrew Gallant
You can do this with a single view; you need to get the sorted rows from the view and then translate them back into the table row indices. var view18 = new google.visualization.DataView(dt); view18.setRows(dt.getFilteredRows([{'column': 2, 'value': 'Male'}])); var sortedViewRows =

[visualization-api] Re: timeline error when trying to set the colors option, this.getLength is not a function

2014-07-02 Thread Andrew Gallant
What does that output when you render the page? I would expect that you would want to input the colors as an array in Java and the output should handle converting the Java array to a javascript array. On Wednesday, July 2, 2014 9:12:33 AM UTC-4, EricC wrote: I have a project using gwt,

[visualization-api] Re: timeline error when trying to set the colors option, this.getLength is not a function

2014-07-02 Thread Andrew Gallant
the bar chart. On Wednesday, July 2, 2014 10:37:46 AM UTC-7, Andrew Gallant wrote: What does that output when you render the page? I would expect that you would want to input the colors as an array in Java and the output should handle converting the Java array to a javascript array

[visualization-api] Re: Connecting Two Locations on a Map

2014-07-02 Thread Andrew Gallant
If you are using a GeoChart, you cannot connect points with a line. If you are using Google Maps, you need to ask either in the Maps forum https://productforums.google.com/forum/#!forum/maps or on StackOverflow http://stackoverflow.com, as this forum is for the Visualization API, not maps.

Re: [visualization-api] Re: Scatter chart with square grid

2014-07-01 Thread Andrew Gallant
on it? On Mon, Jun 30, 2014 at 9:06 PM, Andrew Gallant asgall...@gmail.com javascript: wrote: I gave some hints on how to do this over in this thread https://groups.google.com/d/msg/google-visualization-api/j8M09h8kFeE/TNvi_O9uaCwJ . On Monday, June 30, 2014 6:08:13 AM UTC-4, Yehonathan

Re: [visualization-api] Re: Scatter chart with square grid

2014-07-01 Thread Andrew Gallant
, so the width of the graph is dynamic. For the moment, I am listening to window resize event and I recalculate the height according to the new width? On Jul 1, 2014, at 4:39 PM, Andrew Gallant asgall...@gmail.com javascript: wrote: Do you mean that you don't know how to handle resizing

Re: [visualization-api] Re: Scatter chart with square grid

2014-07-01 Thread Andrew Gallant
:52 PM, Andrew Gallant asgall...@gmail.com javascript: wrote: Yes, that is exactly what you have to do to resize the chart, and then use the new dimensions to set the chart options to make the grids square. On Tuesday, July 1, 2014 9:41:36 AM UTC-4, Yehonathan Sharvit wrote: I don’t know

[visualization-api] Re: Geomap Visualization with multiple markers

2014-07-01 Thread Andrew Gallant
The GeoCharts only support a single type of marker. You can use one data series for marker color and another for marker size, if that helps. On Tuesday, July 1, 2014 2:22:32 PM UTC-4, Tushar Narkhede wrote: Hi, I want to have the two types of markers on the same geomap with different

[visualization-api] Re: Data - is it sent to google?

2014-07-01 Thread Andrew Gallant
Never is not strictly correct. The majority of visualizations will not send any data to Google, but there are exceptions, primarily the GeoCharts, which may need to geocode your data. Check the data policy section of the documentation for every chart type you use to make sure (ex: GeoChart

[visualization-api] Re: Display the value of a point even if not focusing on it

2014-06-30 Thread Andrew Gallant
There are no options to enable this behavior on the AnnotationChart, sorry. On Monday, June 30, 2014 4:31:32 AM UTC-4, antoin...@gmail.com wrote: I used to use annotated timeline for one of my website, and i was very pleased by it. However, it wasn't displayed to safari mobile's users.

[visualization-api] Re: Problem to display a dashboard in HTML file

2014-06-30 Thread Andrew Gallant
Are you loading it from a webserver or from your file system? If it's not on a webserver, you need to add the protocol to the jsapi script URL: script type=text/javascript src=http://www.google.com/jsapi;/script If you leave out the protocol, the browser uses whatever protocol the page uses

[visualization-api] Re: Scatter chart with square grid

2014-06-30 Thread Andrew Gallant
I gave some hints on how to do this over in this thread https://groups.google.com/d/msg/google-visualization-api/j8M09h8kFeE/TNvi_O9uaCwJ . On Monday, June 30, 2014 6:08:13 AM UTC-4, Yehonathan Sharvit wrote: I would like to draw a *scatter chart* with grid lines in both the vertical and

[visualization-api] Re: How to integrate scatter chart or any chart with jquery's accordion

2014-06-29 Thread Andrew Gallant
You can attach an activate event to the jQueryUI Tabs or Accordion that draws the chart in the opened panel. The event object contains newHeader and newPanel properties to identify the opened panel. On Sunday, June 29, 2014 2:57:12 AM UTC-4, Nagendra Singh wrote: How can I make my chart

[visualization-api] Re: can I draw table chart without the header line?

2014-06-29 Thread Andrew Gallant
Hide the table header with CSS: .google-visualization-table-tr-head { display: none; } On Sunday, June 29, 2014 12:41:22 PM UTC-4, Roni Segoly wrote: -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To unsubscribe from this

[visualization-api] Re: Column chart - Bar color

2014-06-27 Thread Andrew Gallant
Use a style role column to color your bars: var data = google.visualization.arrayToDataTable([ ['Name', 'Value', {role: 'style', type: 'string'}], ['High', 50, '#d51711'], ['Medium', 25, '#f9f107'], ['Low', 10, '#11d517'] ]); On Friday, June 27, 2014 3:02:01 AM UTC-4, Nagendra

Re: [visualization-api] Re: Column chart - Bar color

2014-06-27 Thread Andrew Gallant
data changes. Use view in place of data when drawing the chart. On Friday, June 27, 2014 1:08:29 PM UTC-4, Nagendra Singh wrote: I meant color based on value... I do not need to hard code it.. My values changes dynamically. On Fri, Jun 27, 2014 at 10:14 PM, Andrew Gallant asgall

Re: [visualization-api] Re: Column chart - Bar color

2014-06-27 Thread Andrew Gallant
of the three params (bufferCount, cpu and memory) any one is high it should show red , orange for medium and green for low.. If you have a solution, you can make my day.. Please help... On Fri, Jun 27, 2014 at 10:48 PM, Andrew Gallant asgall...@gmail.com javascript: wrote: You can use a DataView

Re: [visualization-api] Re: Column chart - Bar color

2014-06-27 Thread Andrew Gallant
('ColumnChart')); chart.draw(view, options); } On Fri, Jun 27, 2014 at 11:18 PM, Andrew Gallant asgall...@gmail.com javascript: wrote: Ok, that is a bit different from what I thought you were doing. The ColorFormatter should work for the Table, but it won't do anything

Re: [visualization-api] Re: can I draw chart from Goole spreadsheet

2014-06-26 Thread Andrew Gallant
@gmail.com javascript: wrote: Will try again today Roni Segoly 0546466264 On 24 Jun 2014 21:04, Andrew Gallant asgall...@gmail.com javascript: wrote: It works for me: http://jsfiddle.net/asgallant/DPET3/ On Tuesday, June 24, 2014 1:10:08 PM UTC-4, Roni Segoly wrote: If I add

[visualization-api] Re: precision of timeline chart

2014-06-26 Thread Andrew Gallant
Axis labels on the Timeline are not configurable at this time. On Thursday, June 26, 2014 7:47:28 AM UTC-4, min ji wrote: Hello everyone, I want to draw a timeline. the codes are below. I find that the precision of the x axis change with the chart container's width. If the container are

Re: [visualization-api] Re: can I draw chart from Goole spreadsheet

2014-06-26 Thread Andrew Gallant
AM UTC-4, Roni Segoly wrote: The range is correct and chart is updated after 2 minutes or more Roni Segoly 0546466264 On 26 Jun 2014 17:00, Andrew Gallant asgall...@gmail.com javascript: wrote: If you open the page and leave it alone to update by itself, does it eventually get the new

[visualization-api] Re: Column chart not visible

2014-06-26 Thread Andrew Gallant
If you are getting that error message, it means you are either loading the API incorrectly, or you aren't waiting for it to load before trying to use API components. It would help me to diagnose your issue if you could post a complete example that demonstrates the problem. When you have that

[visualization-api] Re: XMLHttpRequest cannot load file:.........Origin 'null' is therefore not allowed access.

2014-06-26 Thread Andrew Gallant
Are you running that code from a webserver? On Thursday, June 26, 2014 11:10:12 AM UTC-4, Vincenzo Diligente Tizzani wrote: I am trying to create a simple website where I can show through the selections of graphics, database connection proceeds through the json file from which they do

[visualization-api] Re: Column chart not visible

2014-06-26 Thread Andrew Gallant
); window.open('http://'+domainName+':8080/RestartSpringRestService/siteDetails?siteCode=' + siteName); } } }); fetchlastupdate(); } On Thursday, June 26, 2014 9:24:10 PM UTC+5:30, Andrew Gallant wrote: If you are getting that error message, it means you

[visualization-api] Re: precision of timeline chart

2014-06-26 Thread Andrew Gallant
They are not configurable. The dev team is aware of the problem and is considering solutions. On Thursday, June 26, 2014 12:35:33 PM UTC-4, min ji wrote: can the annotation be configurable? On Thursday, June 26, 2014 4:03:36 PM UTC+2, Andrew Gallant wrote: Axis labels on the Timeline

[visualization-api] Re: XMLHttpRequest cannot load file:.........Origin 'null' is therefore not allowed access.

2014-06-26 Thread Andrew Gallant
running Il giorno giovedì 26 giugno 2014 17:58:22 UTC+2, Andrew Gallant ha scritto: Are you running that code from a webserver? On Thursday, June 26, 2014 11:10:12 AM UTC-4, Vincenzo Diligente Tizzani wrote: I am trying to create a simple website where I can show through the selections

[visualization-api] Re: Is there a way to destroy a chart ? or redraw it in a clean way ?

2014-06-26 Thread Andrew Gallant
You can call the chart's #clearChart method to remove it and all associated elements from the DOM. A better solution, though, might be to reuse the same chart object instead of creating new ones on every draw. On Thursday, June 26, 2014 9:03:53 PM UTC-4, Yaniv Kalfa wrote: I am using google

[visualization-api] Re: mapping Geochart value in scatter chart

2014-06-25 Thread Andrew Gallant
What do you mean by map value? On Wednesday, June 25, 2014 12:00:43 AM UTC-4, Nagendra Singh wrote: Hi. I would like to map geochart's value into scatter chart. My geochart is a separate js file and scatter chart is a separate js file. Please help me, as I am new to this google

[visualization-api] Re: Google Charts - Pie Chart drill up

2014-06-25 Thread Andrew Gallant
Unless there is a chart element you want to click on to go back to the first chart, your best option is to add an element to HTML and assign an event handler to it that redraws the original chart. On Wednesday, June 25, 2014 1:16:34 AM UTC-4, Suha wrote: Hi, I am trying to understand how

[visualization-api] Re: How to add row with date using addRowWithValues

2014-06-25 Thread Andrew Gallant
on the Java side. On Tuesday, June 24, 2014 5:46:02 PM UTC-7, Andrew Gallant wrote: Use a string, in the format Date(year, month, day, hours, minutes, seconds, milliseconds), where year is the 4-digit year and month is zero-indexed (January is 0, not 1). All arguments after month are optional

[visualization-api] Re: Having a more detailed map for GeoChart

2014-06-25 Thread Andrew Gallant
More detailed than what? I can't tell from your map what the region or resolution is. Some countries have state/province level maps, and in the US, the state level maps have metro-code maps, other countries may or may not have more detailed maps. On Wednesday, June 25, 2014 10:57:56 AM

[visualization-api] Re: Having a more detailed map for GeoChart

2014-06-25 Thread Andrew Gallant
. At least having the city names so that they know exactly where to focus marketing. https://lh6.googleusercontent.com/-w-kS2o_o9u4/U6rro580grI/AFg/e5SaypVcEb0/s1600/New+Picture+%281%29.bmp On Wednesday, June 25, 2014 11:12:07 AM UTC-4, Andrew Gallant wrote: More detailed than

[visualization-api] Re: Smooth line area chart

2014-06-25 Thread Andrew Gallant
AreaCharts do not support smooth lines. You can file a feature request http://code.google.com/p/google-visualization-api-issues/issues/list to add support for this. On Wednesday, June 25, 2014 2:21:23 PM UTC-4, daveiejp21 wrote: Hello All, I am new to Google charts so I ask that you please

Re: [visualization-api] Re: can I draw chart from Goole spreadsheet

2014-06-25 Thread Andrew Gallant
, 2014 at 9:54 AM, Roni Segoly roni@gmail.com javascript: wrote: Will try again today Roni Segoly 0546466264 On 24 Jun 2014 21:04, Andrew Gallant asgall...@gmail.com javascript: wrote: It works for me: http://jsfiddle.net/asgallant/DPET3/ On Tuesday, June 24, 2014 1:10:08 PM UTC-4

[visualization-api] Re: Multiple charts from csv file on same page.

2014-06-25 Thread Andrew Gallant
, Andrew Gallant wrote: Since your chart options are otherwise identical for each chart, would this work for you? function drawChart(){ drawChartFromCSV('data.csv', 'chart_div', 'Metrics 1'); drawChartFromCSV('data1.csv', 'chart_div2', 'Metrics 2'); drawChartFromCSV('data3.csv

[visualization-api] Re: Tooltip questions

2014-06-25 Thread Andrew Gallant
The API will not spawn tooltips for the axis or legend. Some charts support mouseover events, which could be used to spawn custom tooltips. On Wednesday, June 25, 2014 8:04:49 PM UTC-4, Brian Quirion wrote: Is it possible to have tooltips for the haxis labels? Is it possible to have

[visualization-api] Re: how to display start and end time while mouse over on the timeline chart

2014-06-24 Thread Andrew Gallant
The duration display is not yet configurable. The dev team is aware of the problem and is working on a solution. The reason your month is off by 1 is likely because you input the dates wrong. Javascript zero-indexes months, so January is 0, not 1 (and March is 2, not 3); you have to subtract

[visualization-api] Re: how to show the date with the format yyyy-mm in the scatter chart

2014-06-24 Thread Andrew Gallant
The reason you see repeating months in the x-axis is because the axis is actually displaying multiple days per month, formatted as -MM. You can change the locations of tick marks by specifying the hAxis.ticks option, eg: hAxis: { title: X, titleTextStyle: {color: green},

Re: [visualization-api] Re: can I draw chart from Goole spreadsheet

2014-06-24 Thread Andrew Gallant
, Jun 24, 2014 at 7:36 PM, Andrew Gallant asgall...@gmail.com javascript: wrote: I suspect that all you need to do is add a refreshInterval property to the object in the script tag: script type=text/javascript src=// ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js {dataSourceUrl

[visualization-api] Re: How to add row with date using addRowWithValues

2014-06-24 Thread Andrew Gallant
Use a string, in the format Date(year, month, day, hours, minutes, seconds, milliseconds), where year is the 4-digit year and month is zero-indexed (January is 0, not 1). All arguments after month are optional (default is 1 for day and 0 for all others). You can also use a string in the

[visualization-api] Re: Multiple charts from csv file on same page.

2014-06-24 Thread Andrew Gallant
Since your chart options are otherwise identical for each chart, would this work for you? function drawChart(){ drawChartFromCSV('data.csv', 'chart_div', 'Metrics 1'); drawChartFromCSV('data1.csv', 'chart_div2', 'Metrics 2'); drawChartFromCSV('data3.csv', 'chart_div3', 'Metrics 3');

[visualization-api] Re: Allow user to input data points and then Google charts it

2014-06-23 Thread Andrew Gallant
Yes, you can do that. Here's one way: function drawChart() { var data = google.visualization.arrayToDataTable([ ['Compromise', 'Quantity'], ['Value #1', 0], [' ', 0], ['Value #2', 0] ]); var options = { title: 'Quick Compromise Graph',

[visualization-api] Re: I want a help on customizing column chart

2014-06-23 Thread Andrew Gallant
refer. On Friday, June 20, 2014 7:07:24 PM UTC+5:30, Andrew Gallant wrote: For the column labels, what do you mean by without the bottom line? You cannot create groups of axis labels, nor can you add lines below the axis. On Friday, June 20, 2014 9:13:14 AM UTC-4, Rajasekaran S wrote: Hi

[visualization-api] Re: Select Events when using a dashboard: can't seem to read the row being selected.

2014-06-23 Thread Andrew Gallant
You need to include tableHandler and bubbleHandler inside drawVisualization, so they can be in-scope for your visualization objects. You can then get information about the selected item like this: function tableHandler () { // get the data used by the Table var dt =

[visualization-api] Re: How advanced can the Stringfilter get for more advanced searches?

2014-06-21 Thread Andrew Gallant
The StringFilter only does a simple search on a single column of data. If you need more complex search behavior, you will have to code your own. On Saturday, June 21, 2014 11:07:48 AM UTC-4, rocits wrote: How advanced can the* Stringfilter* get for more advanced searches? #tags ,#tags and

[visualization-api] Re: Can you over-ride the default row selection for a HTML rendered button/JS control?

2014-06-21 Thread Andrew Gallant
Can you provide further explanation of what you want? It is not clear from your question what Visualization API elements (if any) you are using, how you are using them, and what it is about their default behavior you want to change. On Saturday, June 21, 2014 11:10:09 AM UTC-4, rocits wrote:

[visualization-api] Re: Diff Bar Chart - Bar Color Change

2014-06-21 Thread Andrew Gallant
As I mentioned in the comments to your stackoverflow question, this isn't possible, but you should make a feature request https://code.google.com/p/google-visualization-api-issues/issues/list to add support for it. On Saturday, June 21, 2014 2:26:00 PM UTC-4, Sathish Ramkumar wrote: I am

[visualization-api] Re: Can you over-ride the default row selection for a HTML rendered button/JS control?

2014-06-21 Thread Andrew Gallant
In the select event handler, you can clear the Table's selection by calling the #setSelection method with no arguments, eg: myTable.setSelection(); You should be able to get your jQuery event handlers to work, though (make sure you are using the $.live or $.on methods to create them, as the

[visualization-api] Re: Multiline Title

2014-06-20 Thread Andrew Gallant
You can use \n to add a newline break to your chart's title. On Friday, June 20, 2014 3:56:23 AM UTC-4, Berkin GÜLER wrote: As far as I have seen in some old topics, multiline title is not supported. Is there any news on the issue? Are there any workarounds, maybe? Thanks. -- You

[visualization-api] Re: I want a help on customizing column chart

2014-06-20 Thread Andrew Gallant
For the column labels, what do you mean by without the bottom line? You cannot create groups of axis labels, nor can you add lines below the axis. On Friday, June 20, 2014 9:13:14 AM UTC-4, Rajasekaran S wrote: Hi, I want to use Google interactive chart in my project. I am having trouble

[visualization-api] Re: Multiline Title

2014-06-20 Thread Andrew Gallant
The title can't be centered. If you need a more customized title, you can build it in HTML instead of using the chart's title. On Friday, June 20, 2014 10:17:19 AM UTC-4, Berkin GÜLER wrote: Oh, thanks. Uhm, what about centering it? 20 Haziran 2014 Cuma 16:28:26 UTC+3 tarihinde Andrew

[visualization-api] Re: Layered (versus stacked) bar chart?

2014-06-20 Thread Andrew Gallant
Do the subtraction to make them the correct size, but set the formatted value of the goal bar to 700 so it displays correctly in the tooltip, eg: var data = google.visualization.arrayToDataTable([ ['y', 'sales', 'goal'], ['', 148, {v: 552, f: '700'}] ]); On Friday, June 20, 2014

Re: [visualization-api] Re: newbie looking for example

2014-06-19 Thread Andrew Gallant
. On Wednesday, June 18, 2014 11:02:29 PM UTC-4, Roni Segoly wrote: I need for different data On 19 Jun 2014 01:00, Andrew Gallant asgall...@gmail.com javascript: wrote: Does your BarChart use the same data as the Gauges, or is it different data? On Wednesday, June 18, 2014 5:09:54 PM UTC-4, Roni

[visualization-api] Re: google.visualization.Table - Problem with css

2014-06-19 Thread Andrew Gallant
This is probably due to a CSS conflict. Add the !important flag to your background-color: .PoorTransaction { font-weight: bold; color: darkred; background-color: red !important; } On Thursday, June 19, 2014 5:30:08 AM UTC-4, frankst...@gmail.com wrote: Hi all, I'm hoping you

<    1   2   3   4   5   6   7   >