Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is anyone got any examples of drawing pie charts with vectors as markers on OpenLayers ?


share|improve this question
Please check out thematicmapping.org/playground/… –  Sunil Feb 27 '13 at 10:05
I'm sure there'll be a growing number of people asking this question with Google Image charts being deprecated...I'm searching high and low for a solution myself. The options I've looked at so far are pretty terrible. #1 draw charts directly somehow by hand in OL (out of poly's?); #2 use Google Charts print function to export an image from the <canvas> tag, which is hacky as hell and doesn't even support IE9. –  Daniel Nov 17 '14 at 3:10

2 Answers 2

An example can be found at this website:


share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Well, took me a couple of hours but I found one way to do it.

It requires you to use dojo.js, (which unfortunately I can't use for my project but thought I'd share for anybody else that's looking).

Basically, as I understand it, dojo adds a custom wrapper to openlayers map which allows you to add Dojo GFX Shapes and Widgets - which includes Pie Charts!

See a good demo here: http://acuriousanimal.com/blog/2012/01/23/dojo-openlayers-new-challenges/

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.