If you just use the string values you want, then you can duplicate them as well. If you need to convert the strings to format them differently, then you will have to do that with some JavaScript in the browser. One way to do that is to create a DataView ( https://google-developers.appspot.com/chart/interactive/docs/reference#DataView) where you set your columns to the same columns, except use a calculated column to replace the first column.
On Mon, Mar 10, 2014 at 10:51 AM, Missy <[email protected]> wrote: > Dear Daniel, > > Thank you for your response. I am afraid, the server does not have > distinct time values for each date. Can I plot data 'ids' on the x-axis > but label it as daily date interval, is this task feasible using google api > line charts. > > Thank you so much for your help and time. Much help appreciated. > > > > > > > > > > > On Monday, March 10, 2014 1:51:10 PM UTC, Daniel LaLiberte wrote: > >> Missy, >> >> Usually people want to figure out how to make the tick values appear to >> be distinct, so it is interesting that you want several to show the same >> label. >> >> To get the plot to distribute the values horizontally, you will need >> distinct values, which in this case should probably be datetime values, >> where you specify the hour (or additionally, minute, second, and >> millisecond) during the day for each data value. You might be doing that >> already, though it is not clear from what you say. Let me know if this is >> a problem and I can help more. >> >> Then, you need to specify a format which will only show the day and >> month, which you can do by adding this option: >> >> hAxis: {format: "dd MMM"} >> >> >> >> >> On Mon, Mar 10, 2014 at 8:16 AM, Missy <[email protected]> wrote: >> >>> hi, >>> >>> I would like to know, if its possible to display duplicate date values >>> as daily date ranges. This what my server data looks like: >>> >>> 63.50 07/03/2014 535482 5.00 07/03/2014 535536 20.00 07/03/2014 >>> 535542 93.50 07/03/2014 535472 91.20 07/03/2014 535476 91.00 >>> 07/03/2014 535459 92.00 07/03/2014 535464 92.00 07/03/2014 535468 >>> Is their any controls, I need to look into to build this date interval >>> function or is their another chart type i should be looking into? >>> >>> This is the desired output I am looking for, if possible: >>> >>> >>> <https://lh3.googleusercontent.com/-v52cqPLDwLc/Ux2tCUL4WZI/AAAAAAAAAPE/twnuuhNUHC0/s1600/Date_range_Mar_2014.jpg> >>> >>> Many thanks for your time and help. >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google Visualization API" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> >>> Visit this group at http://groups.google.com/ >>> group/google-visualization-api. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> >> - 978-394-1058 >> [email protected] 5CC, Cambridge MA >> [email protected] 9 Juniper Ridge Road, Acton MA >> > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to > [email protected]. > Visit this group at > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton MA -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
