On Mon, Nov 29, 2010 at 3:33 PM, Lukáš Kubín <[email protected]> wrote:
> This doesn't comply with the given requirement of LineChart having a > string-type column for x-axis values. > You can pass the DataView to the draw() method. The first column of the DataView is type 'string'. Actually, I see this requirement baseless. > Having a numeric column as the first column creates ambiguity. The chart doesn't know whether to use the first column as values (and draw an x-axis with no labels) or as labels. > > I wish to have the interaction between table and chart, so that manual > sorting the table, updates the chart. But I can't find any method or > parameter to hide some column either from displaying in the chart or > in the table/view. If I don't hide it, then I'll end up with having > duplicate data columns either in the table or in the chart. That's > misleading for the users. > You can create a DataView that hides the column and redraw the chart with the DataView. > > kukacz > > On Mon, Nov 29, 2010 at 3:44 AM, chrissky <[email protected]> wrote: > > Plan B: just clone the whole table but change the string type column > > to a numeric. And use that cloned table for the chart. I have used > > that approach on several occasions. > > > > On Nov 28, 4:44 am, Lukáš Kubín <[email protected]> wrote: > >> Thanks chrissky. I can't add another column into the table, however, > >> since it would be plotted in my chart as another series. > >> I'm looking for some way how to use the LineChart or AreaChart without > >> having to use a string-type column for x-asis. Or maybe a method of > >> DataTable or DataView to sort string column by numeric indexes. > >> > >> kukacz > >> > >> On Sun, Nov 28, 2010 at 2:16 AM, chrissky <[email protected]> wrote: > >> > Just add a numeric column to the table and copy the strings values by > >> > row. Then sort on that column. > >> > >> > On Nov 27, 5:41 pm, kukacz <[email protected]> wrote: > >> >> Hi, > >> >> I need to sort a datatable, where first column is of a string type. > It > >> >> has to be a string since I'm creating a chart, where the first > >> >> column's data form a x-axis series. The problem is the actual data of > >> >> that column have numeric meaning. > >> > >> >> Still however, I wish to be able to resort the table dynamically > while > >> >> keeping the correct numeric order of rows, not a string order. Is > >> >> there some way how to do this? > >> > >> >> Just to illustrate the unwanted behaviour, following column: > >> >> 512 > >> >> 1024 > >> >> 4096 > >> > >> >> is being incorrectly resorted by string algorithm to: > >> >> 1024 > >> >> 4097 > >> >> 512 > >> > >> >> Thank you. > >> > >> >> kukacz > >> > >> > -- > >> > 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]<google-visualization-api%[email protected]> > . > >> > For more options, visit this group athttp:// > groups.google.com/group/google-visualization-api?hl=en. > >> > >> > > > > -- > > 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]<google-visualization-api%[email protected]> > . > > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > > > > > -- > 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]<google-visualization-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- 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.
