Reputation: 3867
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
Reputation: 31
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
Reputation: 921
I suggest that you take a look at ol3-ext
here: https://github.com/Viglino/ol-ext
Examples:
Simple Pie chart: http://viglino.github.io/ol-ext/examples/style/map.style.chart.html
Chart with values: http://viglino.github.io/ol-ext/examples/style/map.style.chart+text.html
Upvotes: 5