James Williams
LinkedInMastodonGithub

Motivation comes when you least expect it - Google Chart Plugin

Tags: Grails

Zig Ziglar once said: "People often say that motivation doesn't last. Well, neither does bathing - that's why we recommend it daily."

My daily dose was Graeme's nod on his blog yesterday. In wrapping up the last few remaining issues, I am happy to announce that the Grails Google Chart plugin now fully implements Google's spec. New in this release is:

  • line styles
  • grid lines
  • shape markers, and
  • range fill

The one breaking change is that the attribute "shapes" has changed to shapeRangeFill because those features use the same attribute key on Google's side.

It has come across my mind more than once to abstract a chart into a domain object so that it can be stored. For the needs of most Google's 50K threshold is perfectly fine. The one area that might cause issues is if there are many charts using the extended dataset being parsed at the same time. If the data changes infrequently, it's better to store the data string than regenerate. Additionally, a domain object could allow the user to use nicer color names.

Thoughts? Objections? Concerns?