--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/8kJwHA9OQwsJ.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Is it possible or is there a way to produce vertical axis lines
on Area charts?
The workaround I am using now, which is very nice, is to move
the values to the next column and then this will automatically
show up in a different color.
My graph plots against an X-Axis of Date and Time.
I am not showing the time but would love to be able to show it,
is there also a workaround here.
I am tweaking the hAxis.showTextEvery to display the ideal
number of dates (like show only one date per day), but would really
like to have a second axis for time of day.
Thanks
--
Eric
--
Eric
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
Am I alowed to enclose images?
Here is the graph
As i mentioned, I tweaked hAxis.showTextEveryto give the result of one
label per day (there are about 100 data points per day).
I would like to show on the hAxis the time of day or at least some
labelling of it. I could program the data to interpolate time of day
into some of the points for the hAxis but I do not have no control of
the API heuristics to make it print what I want IYSWIM.
So I thought a seond hAxis would be great with time of day. I had some
fun and put the time in in 24 hour format as another coloured dataline
in the graph and it gave a sawtooth pattern to 24 and then back to
zero, fun but not presentable.
I also could not find how to add extra horizantal axes, is this
doable?
--
Eric
An awful hack but what I could do is adjust the font size of the date
so that it is smaller and/or truncate the sdate string and then addd
some ascii art to the string with - and * and | to indicate morning,
midday, om, evening, or whatever.
But I am sure there is a better way?
I tried using html markup in this but if failed although I read
somewhere that you could use html.
--
Eric
This is a topic that pops up frequently here in the forum. Many users have the need to convert/serialize the interactive charts they generate using the Google Charts Tools API into static images (PNGs or equivalent) for the user to download or further process.Currently the interactive charts API do not offer this feature (unless you are in specific domains, such as within a Google Apps Script script), unless you are willing to regenerate your chart using the static image APIs --- which however have different semantics, making it difficult to support both.A quick workaround for this is to convert the SVG chart to <canvas /> and then extract the image data from there. This allows for full client-side pure javascript image serialization, at the cost of cross-browser support. The solution works on Chrome,Safari,Firefox,IE9 and Opera, but IE8 and lower does not support the necessary features for this to work (server-side image serialization is also possible, although I won't discuss it here).I have written a brief tutorial and example page to show how this work. Depending on the browsers your users use, and how flexible you can be, the solution might be good enough for your case.Source code : https://gist.github.com/1333906Please note that this is somewhat an hack that I put together in the spare time based on the popularity of topic and lack of support in the current official API, so use at your own risk. Have a look at the tutorial for the limitations. If I were to support image serialization for a production service, I'd still recommend using the static image APIs mentioned above.Please discuss / comment / improve.- R.