humangeo / leaflet-dvf

Leaflet Data Visualization Framework
MIT License
689 stars 153 forks source link

PieCharts don't show when using the examples #125

Open hairpin86 opened 6 years ago

hairpin86 commented 6 years ago

Hi,

I'm just trying to implement your library into our Oracle Apex application.

I tried to get the examples to work, but the pie charts don't show up. All the other layers show up just fine when selected but not the charts.

I tried both version of the library (1.x and 0.7x)

No errors in the console.

What could be the problem?

Thanks

grafik

sfairgrieve commented 6 years ago

@hairpin86 That's weird. Not sure what the problem could be offhand. Can you provide some more details like sample code? Or, is it just this example with no changes: http://humangeo.github.io/leaflet-dvf/examples/html/incomelevels.html

hairpin86 commented 6 years ago

i just plainly copied the example Javascript, included the data files and leaflet.js as well as the tile.stamen.js

Did I miss a library?

hairpin86 commented 6 years ago

Just realised, that all the interactive functionality (e.g. hover over states / country tooltips etc.) don't work either ... I did not include the geohash.js, jsts.js, javascript.util.js in my page, could that be the problem?

sfairgrieve commented 6 years ago

Those libraries shouldn't matter actually, and they can be moved out of this example. This is an old-ish example and hasn't been updated recently. What version of Leaflet are you using? 1.x? If so, you should be using leaflet-dvf 0.3.0. Are you sure that the correct Leaflet CSS file is being included as well? Still no errors in the console logs?

hairpin86 commented 6 years ago

Hi, Your suggestion helped a little bit, tooltips do show now, but pie charts still don't show up as expected. I tried using: using leaflet-dvf 0.3.0 with Leaflet 1.3.1

No errors on the logs.

sfairgrieve commented 6 years ago

Weird. Still the same example, or a different one?

hairpin666 commented 6 years ago

I tried all the examples, no charts :( , the other layers work as expected. No idea what I'm doing wrong....