And you still have a problem? The axis labels should be fine automatically.
On Thu, Oct 27, 2011 at 12:24 PM, Radhouene Gniwa <[email protected] > wrote: > exactly > > > 2011/10/27 EZChart <[email protected]> > >> So every time the user selects a different scale you should replace the >> data table, keeping only the relevant rows, and redraw the chart. >> >> >> On Thu, Oct 27, 2011 at 11:51 AM, Radhouene Gniwa < >> [email protected]> wrote: >> >>> an example to explain: >>> i have date like this: >>> 05-10-2011->value=15 >>> 07-10-2011-value=7 >>> 12-10-2011->value=60 >>> . >>> . >>> . >>> if i choose "month", Y axis labels should be: 01-10-2011,02-10-2011,..., >>> 30-10-2011 >>> if i choose "week=2", Y axis labels should be :08-10-20011,09-10-2011..., >>> 14-10-2011 >>> >>> of course data depend of request (if choose week, request result will be >>> the data of the week) >>> >>> >>> 2011/10/27 EZChart <[email protected]> >>> >>>> I'm not sure I understand what the scale level changes. Does it control >>>> the range of the data to show? >>>> That is, when the user selects 'year' he will see data for the entire >>>> year, and on 'month' will see just the last month? >>>> >>>> To achieve this the best thing to do is replace the DataTable when the >>>> user clicks the button. >>>> Another way would be to restrict the data you show using >>>> vAxis.viewWindow (see documentation under >>>> http://code.google.com/apis/chart/interactive/docs/gallery/linechart.html#Configuration_Options >>>> ). >>>> >>>> You can control the format of the axis labels using the vAxis.format >>>> option. >>>> >>>> On Thu, Oct 27, 2011 at 11:04 AM, Radhouene >>>> <[email protected]>wrote: >>>> >>>>> Hello, >>>>> I work with LineChart and i have buttons to set scale level (year, >>>>> month, week..). I want that Y axis labels follow scale. for example, >>>>> if i choose month scale, Y axis labels should be 01-02-03.....29-30 . >>>>> How do that? >>>>> Thanks in Advance !! >>>>> >>>>> -- >>>>> 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. >>>>> >>>>> >>>> -- >>>> 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. >>>> >>> >>> -- >>> 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. >>> >> >> -- >> 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. >> > > -- > 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. > -- 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.
