Skip to content

kossyak/olStyleChart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

olStyleChart

Building Chart for point and cluster in Openlayers. DEMO

image

copy file ./chart.js to your project
import chart from './chart.js'
// ...
style: (feature) => {
  return new ol.style.Style({
    image: new ol.style.Icon({
        img: chart.create({
          values: [10, 14, 3, 12, 8],
          colors: ['#00a64c', '#fcb900', '#ae328e', '#f50800', '#2962ff'],
          hole: 0.7, // 0..1
          radius: 15, // px
          stroke: 0.5 // px
        })
    })
  })
}

Full example in a file index.html

Clustered Features Example

About

Openlayers Chart

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors