google / google-visualization-issues

288 stars 35 forks source link

AnnotatedTimeLine Padding #1156

Open orwant opened 9 years ago

orwant commented 9 years ago
What would you like to see us add to this API?

An option to add padding to the chart with an option.

Padding: 1
Default 0
Values 0-10

1 = 1 unit of time
10 = 10 units of time
If the y axis is in days then 1 unit = 1 day

What component is this issue related to (PieChart, LineChart, DataTable,
Query, etc)?
AnnotatedTimeLine

*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by mkrupnic on 2013-02-21 15:39:48

orwant commented 9 years ago
We are not likely to do anything more with the AnnotatedTimeLine API, but you can use
the ChartRangeFilter to get some of the same functionality.  

Regarding your padding feature request, I would guess you mean space between the data
plotted within a chart and the edge of the chart.  I've been thinking such a feature
would be useful.  You can get a padding effect by a hard-coded amount (roughly anyway)
by using the viewWindowMode of 'pretty'.

Axes and charts currently don't know about units at all, though that would be a useful
feature as well.  

Original issue reported on code.google.com by dlaliberte@google.com on 2013-02-21 16:06:17

orwant commented 9 years ago
Thank you, this is very helpful.  This chart seems to be "hidden" in the documentation
about Dashboarding.  I think it would be helpful to clean up the documentation to give
this chart its own page similar to the AnnotatedTimeLine's comprehensive page at: https://developers.google.com/chart/interactive/docs/gallery/annotatedtimeline

I think there are 4 features missing from ChartRangeFilter 
1) Mouseover View of all datapoints for a x date or datetime.  i.e. I have 3 lines
charted and I mouse over a single date and I can see the values of all 3 charts on
the single day
2) displayZoomButtons - Some sort of quick jump to 1d, 1m, 1 y.  Although I'd prefer
more control over the zoom levels than a boolean on/off
3) Hide/show data columns events - hideDataColumns / showDataColumns - Although it
would be better to implement some sort of option to toggle on/off checkboxes so the
user can toggle manually like filterDataColumns: True and you get similar to Google
Finanace
4) Annotations - I never really like the implimentation of this as a separate column.
 There must be a more cleaner implimentation

I do however love the fact that ChartRangeFilter is not Flash!

Thanks for the quick response.  I think I may search a bit and add enhancements requests
to the ChartRangeFilter 

Original issue reported on code.google.com by mkrupnic on 2013-02-21 16:32:35

orwant commented 9 years ago
Glad to help.  

The AnnotatedTimeLine docs need to be cleaned up, along with all the rest, which we
are working on.  I'm not sure what documentation on Dashboarding you are referring
to, but there is a section on the ChartRangeFilter at: https://developers.google.com/chart/interactive/docs/gallery/controls#chartrangefilter

Regarding your list of missing features... 

I believe you can do (1) with targetFocus set to 'category'.  

The zoom buttons are a convenient feature, but you might be able to wire your own using
buttons that change the ChartRangeFilter's range.  I bet someone has done that work
already, but I haven't found it yet.

Regarding annotations, the purpose of having a separate column for annotations is so
that you can have a separate annotation for every row.  But if you only want a few
annotations, that seems a cumbersome waste.  It might be more convenient to make a
small set of calls to add annotations to the table, or to associate a separate table
containing just the annotations.  We don't have any specific plans yet, but we will
be considering the alternatives.

Original issue reported on code.google.com by dlaliberte@google.com on 2013-02-21 17:16:44