Today this can be set by the user, from the "location" menu of your chart (on the top right side - the one that controls the colors). We are working on programatical control of the initial state of the chart so you as a developer will be able to set the state from js. This will be pushed to prod in the near future. We will post about it in teh group once there are specific details.
Regards, VizGuy On Fri, Feb 13, 2009 at 9:22 AM, Anusha <[email protected]> wrote: > Hi > I also wanted to know if there was a way to change colours. In the example > that i posted earlier east and west are assigned different colours. Is there > a way for me to set these colours? > > Thanks > > 2009/2/12 VizGuy <[email protected]> > > I will let you know once I have a clear time estimation, but I believe it >> will be quite soon. >> >> VizGuy >> >> >> >> On Thu, Feb 12, 2009 at 11:02 AM, Anusha <[email protected]> wrote: >> >>> When can i expect a solution? >>> 2009/2/11 VizGuy <[email protected]> >>> >>> Thanks for notifying this issue. >>>> >>>> We will look into this problem. >>>> >>>> Regards, >>>> VizGuy >>>> >>>> >>>> >>>> On Tue, Feb 10, 2009 at 9:25 AM, kamakshi <[email protected]> wrote: >>>> >>>>> >>>>> I have noticed that, if the value ranges is higher than 1000 the >>>>> displayed values on the axes get rounded off. Is there a way around >>>>> this? >>>>> This the example from >>>>> http://code.google.com/apis/visualization/documentation/gallery/motionchart.html >>>>> . >>>>> If i change the value of Apple Sales to 1500 and Oranges sales to 957. >>>>> On the graph the value of 957 changed to 960. I want it to display >>>>> 957. >>>>> >>>>> <html> >>>>> <head> >>>>> <script type="text/javascript" src="http://www.google.com/jsapi"></ >>>>> script> >>>>> <script type="text/javascript"> >>>>> google.load('visualization', '1', {'packages':['motionchart']}); >>>>> google.setOnLoadCallback(drawChart); >>>>> function drawChart() { >>>>> var data = new google.visualization.DataTable(); >>>>> data.addRows(6); >>>>> data.addColumn('string', 'Fruit'); >>>>> data.addColumn('date', 'Date'); >>>>> data.addColumn('number', 'Sales'); >>>>> data.addColumn('number', 'Expenses'); >>>>> data.addColumn('string', 'Location'); >>>>> data.setValue(0, 0, 'Apples'); >>>>> data.setValue(0, 1, new Date (1988,0,1)); >>>>> data.setValue(0, 2, 1000); >>>>> data.setValue(0, 3, 300); >>>>> data.setValue(0, 4, 'East'); >>>>> data.setValue(1, 0, 'Oranges'); >>>>> data.setValue(1, 1, new Date (1988,0,1)); >>>>> data.setValue(1, 2, 950); >>>>> data.setValue(1, 3, 200); >>>>> data.setValue(1, 4, 'West'); >>>>> data.setValue(2, 0, 'Bananas'); >>>>> data.setValue(2, 1, new Date (1988,0,1)); >>>>> data.setValue(2, 2, 300); >>>>> data.setValue(2, 3, 250); >>>>> data.setValue(2, 4, 'West'); >>>>> data.setValue(3, 0, 'Apples'); >>>>> data.setValue(3, 1, new Date(1988,1,1)); >>>>> data.setValue(3, 2, 1200); >>>>> data.setValue(3, 3, 400); >>>>> data.setValue(3, 4, "East"); >>>>> data.setValue(4, 0, 'Oranges'); >>>>> data.setValue(4, 1, new Date(1988,1,1)); >>>>> data.setValue(4, 2, 900); >>>>> data.setValue(4, 3, 150); >>>>> data.setValue(4, 4, "West"); >>>>> data.setValue(5, 0, 'Bananas'); >>>>> data.setValue(5, 1, new Date(1988,1,1)); >>>>> data.setValue(5, 2, 788); >>>>> data.setValue(5, 3, 617); >>>>> data.setValue(5, 4, "West"); >>>>> var chart = new google.visualization.MotionChart >>>>> (document.getElementById('chart_div')); >>>>> chart.draw(data, {width: 600, height:300}); >>>>> } >>>>> </script> >>>>> </head> >>>>> >>>>> <body> >>>>> <div id="chart_div" style="width: 600px; height: 300px;"></div> >>>>> </body> >>>>> </html> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en -~----------~----~----~----~------~----~------~--~---
