Hey, Sorry for the late reply. I didn't have notifications set properly so never saw this response. I am trying to sort the items spread across the x-Axis using the state variable.
In my case I have a bunch of data for a range of dates. Each day has a "Item" (String) and a counter for that day (Integer). The count is the Y axis (i.e. higher the bar the more counts) and the items are the X axis. In the motion chart flash there is a drop down for how to align the items on the xAxis (what order they should be displayed in). This works correctly when it is first selected, lets say I'm choosing alphabetical and the items spread across the x axis in the correct order. The problem occurs after I place the state string into my code to set the initial Motion Chart state. On load all of the bars get squished into 1 location, instead of spread across the xAxis like previously mentioned. Let me know if this still doesn't make sense, can probably bash out a quick example. Cheers, Danny. On Jun 29, 6:11 pm, ChartMan <[email protected]> wrote: > Hi > > I don't understand how you sort the x-Axis. Do you mean you sort the list of > available metrics for the x-Axis? > Please elaborate. > > ChartMan > > On Thu, Jun 25, 2009 at 9:53 AM, Danny Brain <[email protected]> wrote: > > > Hello, > > > I'm working with the Google Visualization API and GWT to display some > > fancy graphs. > > Currently I am having a small, but annoying, issue with the Motion > > Chart when setting the initial state. > > I want to default the X-Axis to sort alphabetically, which I can do > > fine via the UI but when I pass it in as a state variable (copy pasted > > from the "Advanced" area in settings, not manually generated) all of > > the bars combine into 1. > > > My state string is this: > > > {"colorOption":"_UNIQUE_COLOR","showTrails":false,"time":"2008-11-27","dimensions": > > {"iconDimensions":["dim0"]},"orderedByY":false,"duration": > > {"timeUnit":"D","multiplier":1},"playDuration":15,"nonSelectedAlpha": > > 0.4,"yZoomedIn":false,"iconType":"BAR","xZoomedDataMax": > > 15,"orderedByX":true,"sizeOption":"_UNISIZE","yZoomedDataMin": > > 0,"xZoomedIn":false,"xZoomedDataMin":0,"stateVersion":3,"yLambda": > > 1,"yZoomedDataMax": > > > 35980,"xAxisOption":"_ALPHABETICAL","uniColorForNonSelected":false,"yAxisOption":"2","iconKeySettings": > > [],"xLambda":1} > > > Any ideas? It seems like a bug to me. > > Thanks, > > Danny. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
