Something like this: http://jsfiddle.net/asgallant/2PPAh/?
On Saturday, May 4, 2013 6:41:34 PM UTC-4, Pat M wrote: > > As I select the range I want the sum of that range to be calculated and be > displayed for that range, not fully sure as to how it would be presented as > this is new to me ! > In the code.google.com example below, if I take Sold Pens (Red Line) for > Sun Feb 3rd (50.77) and Mon Feb 4 (14.33) I would need to display the date > range and total 65.00. > As the selection changes these ranges would change. > Also as I select wider or narrow ranges or move along the full series of > data these would change also. > > On Saturday, May 4, 2013 8:43:43 PM UTC+1, asgallant wrote: >> >> So let me see if I have this correct: you want to create a chart like an >> AnnotatedTimeLine chart which calculates a sum of the data in the selected >> range and displays that sum in an annotation on the chart, correct? This >> should be doable fairly easily. It would help if you could describe >> exactly how you want this sum to appear on the chart, because traditionally >> annotations have to be associated with data points, not data ranges. >> >> On Saturday, May 4, 2013 2:04:19 PM UTC-4, Pat M wrote: >>> >>> Hi I'm doing a college project. >>> I'm storing values on a webservice (COSM). >>> The values I am recording can be summed up to give a total value i.e. a >>> total of the number of units >>> over the selected period. >>> The idea is that as I select an area with the sliders the sum would be >>> displayed in an annotation of this summed total. >>> >>> http://code.google.com/apis/ajax/playground/?type=visualization#annotated_time_line >>> would be the basic functionality . >>> >>> Another user has created a script to access the required COSM feed >>> http://apps.pachube.com/google_viz/ >>> >>> I would need to modify that viz.js to include an annotation that gives >>> the summed value as I select the range. >>> Any ideas as to how to go about this ? >>> >>> >>> -- 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 google-visualization-api+unsubscr...@googlegroups.com. To post to this group, send email to google-visualization-api@googlegroups.com. Visit this group at http://groups.google.com/group/google-visualization-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.