Ankur Mukherjee
Ankur Mukherjee

Reputation: 3867

OpenLayers Pie Chart

How to integrate pie chart on Openlayers? Tried implementing the same using OPenlayer style circle, but the circle can't be converted into a semi circle and hence can't be placed as a chart Please provide suitable examples for the same.

Upvotes: 4

Views: 2013

Answers (2)

kossyak
kossyak

Reputation: 31

enter image description here

I didn't find a suitable solution for myself, so I created my own function for generating diagrams. It is very simple and easily customizable. For your convenience, I have packaged my solution as an open-source project. https://github.com/kossyak/olStyleChart

Upvotes: 1

kaycee
kaycee

Reputation: 921

I suggest that you take a look at ol3-ext here: https://github.com/Viglino/ol-ext

Examples:

  1. Simple Pie chart: http://viglino.github.io/ol-ext/examples/style/map.style.chart.html

  2. Chart with values: http://viglino.github.io/ol-ext/examples/style/map.style.chart+text.html

Upvotes: 5

Related Questions