Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


share|improve this question
Please check out… – 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. – danwild Nov 17 '14 at 3:10
I would go for ExtJS (N.B. i am not evangelist of that) – SIslam May 9 '15 at 8:56
up vote 2 down vote accepted

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:

share|improve this answer

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.

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.