I'm assuming you need the dates in the DataTable to do data manipulation, but they don't have to be date objects by the time they get to the chart. Use a DataView to convert the dates to strings and draw the chart based on the view - this will make the chart draw with a discrete axis instead of a continuous axis, which will fix the problem for you.
On Monday, June 11, 2012 1:37:57 PM UTC-4, Teliac wrote: > > I have a line chart which plots portfolio value against the date. The > dates in the data set are only market dates - no weekends or holidays. > However when the chart is drawn, it draws a long gap between two > consecutive market days that cover a weekend or holiday (from a Friday to a > Monday, for example). Is there a way to show the Friday to Monday as a > single, one day gap rather than the three day gap the chart currently draws? > > I have been using Google Vis for a while, and I believe this desired > behavior was previously supported but I have not been able to find other > discussions on this. > > I do not want to use he annotated timeline for a variety of reasons, and > it is important for me to keep the horizontal axis as a JavaScript date > type for client side manipulation purposes. > > Thanks, > > Teliac > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/1ZegES7e0VkJ. 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.
