You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.
Looking through the Google Charts documentation it doesn't look like there's an easy way to do this. Some other chart types support an "annotation" role that creates exactly what you described, a vertical line with optional text, but it is not available in the timeline. Google Charts isn't open source and the only issue that came close to addressing this is a low-priority enhancement filed 6 months ago. This also effects issue #9.
Alternatives
Not sure what the next step is - I wanted to add links back to the data portal in #16, which isn't possible with ChartKick according to an open issue. HighChart's canned options for a timeline seem weak, so I don't see that as an alternative. I think I have a good enough handle on Google Charts I can replace ChartKick with a GoogleCharts script. But that still wouldn't give us the line marker.
It seems a little immature but I think we could modify it enough to add an "annotation" when updates occured. It also isn't responsive - we'd have to hand code that in using something like this.
Data Issue
There is also a separate issue grabbing a history of modification dates from the Socrata API. I've posted the question on Stack Overflow, but in short the documented metadata endpoint and the data.json endpoint we pull from now only return the most recent date of modification. I don't think there's a good way around this beyond sending an issue to Socrata. I've opened up a new issue (#18) to address it here.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Related to: #9.
We want to show through the timeline for left to right major markers in the life of the data set... updates.
The text was updated successfully, but these errors were encountered: