Coder Social home page Coder Social logo

Comments (2)

sfairgrieve avatar sfairgrieve commented on May 12, 2024

Try setting the displayOptions option like so when creating the DataLayer:
{
displayOptions: {
: {
radius:
}
}
}

The linear function object maps the data property value to a pixel radius.
This could just be a one to one mapping if you already have a radius
attribute.

Let me know if this doesn't work. I'm on vacation at the moment but will
be able to provide more help the middle if next week.

Thanks,

Scott
On Aug 3, 2013 10:32 AM, "bthart" [email protected] wrote:

Hi,

Just wandering how I could change the radius size of a pie graph based on
a variable from the data. After every abbr field I have added a radius
field.

I am pretty much using the same sort of layout as the election data
example.

I'm just not sure how to link the radius field to the data.

Thanks


Reply to this email directly or view it on GitHubhttps://github.com//issues/3
.

from leaflet-dvf.

sfairgrieve avatar sfairgrieve commented on May 12, 2024

Check out the Election 2012 example: http://humangeo.github.io/leaflet-dvf/examples/html/election2012.html. I updated it recently to illustrate sizing pie charts dynamically by the number of poll results received for each state. I think this is similar to what you were trying to achieve, but if you need additional info. or something isn't working right, let me know.

Thanks,

Scott

from leaflet-dvf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.