4

Has any one got any examples of drawing pie charts with vectors as markers with OpenLayers?

3
  • Please check out thematicmapping.org/playground/…
    – Sunil
    Commented Feb 27, 2013 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
    Commented Nov 17, 2014 at 3:10
  • I would go for ExtJS (N.B. i am not evangelist of that)
    – Learner
    Commented May 9, 2015 at 8:56

2 Answers 2

4

An example can be found at this website:

http://thematicmapping.org/playground/openlayers_piecharts_geojson_google_chart.php

3

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/2012/01/23/dojo-openlayers-new-challenges

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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