Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenLayers Pie Chart

Tags:

openlayers-3

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.

like image 620
Ankur Mukherjee Avatar asked Sep 14 '25 18:09

Ankur Mukherjee


2 Answers

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

like image 147
kaycee Avatar answered Sep 17 '25 18:09

kaycee


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

like image 40
kossyak Avatar answered Sep 17 '25 19:09

kossyak