Blurry Charts?

2,902 views
Skip to first unread message

AM

unread,
Oct 23, 2014, 2:40:00 PM10/23/14
to google-visua...@googlegroups.com


I am seeing a strange issue in charts that are sitting next to each other.

In the following example it looks like the chart on the left is clear and the same type of chart on the right looks blurry:

http://www.towncharts.com/California/Education/Palo-Alto-city-CA-Education-data.html#Figure10

Does anyone else see this?

Thanks

Daniel LaLiberte

unread,
Oct 23, 2014, 3:12:19 PM10/23/14
to google-visua...@googlegroups.com
The two charts in figures 10 and 11 look the same to me, but 14 and 15 do look different.  

We do position the bars at whole pixel boundaries.  But if a stroke width is drawn around the bars, half of the stroke will be drawn outside the rectangle and half on the inside.  So if the stroke width is an odd size (e.g. stroke-width: 1) then half pixels will be drawn outside and inside, and anti-aliasing will kick in to smooth it to a fuzzy blur.  If you use an even size stroke, then a whole number of pixels will be used both outside and inside, so it will then look sharp.

--
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-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA
Reply all
Reply to author
Forward
0 new messages