Hello, Thank you very much for the answer and the promptness with which you responded.
I may be able to work with that and I will keep track of any modification of the the timeline chart api. Thank you again, Béatrice On Monday, November 16, 2015 at 2:48:42 PM UTC+1, Daniel LaLiberte wrote: > > You actually can use type number for the start and end values in the > Timeline chart, but the values will be interpreted as millisecond values > only, and there are several limitations in the choice and formatting of > tick labels, and tooltip values. We should be able to generalize this some > day. > > Here is your data in an example: https://jsfiddle.net/dlaliberte/5d0yqqnt/ > > On Fri, Nov 13, 2015 at 8:06 AM, Bea <[email protected] <javascript:>> > wrote: > >> Hello, >> >> I've tried to use the 'timeline' chart to illustate features in a protein >> sequence. The resulting image I got was very close to what I would like to >> get but I need to have integers on the x-axis instead of dates. >> >> For instance I have a protein sequence of 1019 amino acids and would like >> to represent domain features on this sequence. As a domain feature, I have >> e.g. SEA-PS50024 starting at position 54 and ending at position 169. I've >> 'tweaked' the positions (discrete positive numbers) into dates by adding a >> 1000 to each of them as 'date' would not allow for e.g. year 0054 (too >> early?). Visually, the result I got was nearly exactly what I wanted but I >> would definitely need to be able to put numbers as 'Start' and 'End' to go >> forward. >> >> The following code's extract is what I tested: >> >> dataTable.addColumn({ type: 'string', id: 'Type' }); >> dataTable.addColumn({ type: 'string', id: 'Name' }); >> dataTable.addColumn({ type: 'date', id: 'Start' }); >> dataTable.addColumn({ type: 'date', id: 'End' }); >> dataTable.addRows([ >> [ 'Profile', 'SEA-PS50024', new Date(1054, 0, 1), new >> Date(1169, 11, 31) ], >> [ 'Profile', 'LDLRA_2-PS50068', new Date(1183, 0, 1), new >> Date(1222, 11, 31) ], >> [ 'Profile', 'CUB-PS01180', new Date(1225, 0, 1), new >> Date(1334, 11, 31) ], >> [ 'Profile', 'MAM_2-PS50060', new Date(1330, 0, 1), new >> Date(1504, 11, 31) ], >> [ 'Profile', 'CUB-PS01180', new Date(1450, 0, 1), new >> Date(1634, 11, 31) ], >> [ 'Profile', 'LDLRA_2-PS50068', new Date(1450, 0, 1), new >> Date(1678, 11, 31) ], >> [ 'Profile', 'SRCR_2-PS50287', new Date(1679, 0, 1), new >> Date(1788, 11, 31) ], >> [ 'Profile', 'TRYPSIN_DOM-PS50240', new Date(1700, 0, 1), new >> Date(2019, 11, 31) ] >> >> And this is what I would like to be able to use instead: >> >> dataTable.addColumn({ type: 'string', id: 'Type' }); >> dataTable.addColumn({ type: 'string', id: 'Name' }); >> dataTable.addColumn({ type: '*number*, id: 'Start' }); >> dataTable.addColumn({ type: '*number*', id: 'End' }); >> dataTable.addRows([ >> [ 'Profile', 'SEA-PS50024', *54, 169* ], >> [ 'Profile', 'LDLRA_2-PS50068', *183, 222*], >> [ 'Profile', 'CUB-PS01180', *225, 334*], >> [ 'Profile', 'MAM_2-PS50060', *330, 504*], >> [ 'Profile', 'CUB-PS01180', *450, 634* ], >> [ 'Profile', 'LDLRA_2-PS50068', *450, 678*], >> [ 'Profile', 'SRCR_2-PS50287', *679, 788*], >> [ 'Profile', 'TRYPSIN_DOM-PS50240', *700, 1019*] >> >> >> Thank you for your help, >> >> Béatrice >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Chart API" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/google-chart-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] <javascript:> 5CC, Cambridge MA > [email protected] <javascript:> 9 Juniper Ridge Road, Acton MA > -- You received this message because you are subscribed to the Google Groups "Google Chart 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-chart-api. For more options, visit https://groups.google.com/d/optout.
