jQuery UI Widgets Forums Chart JQXChart Pie Chart CenterOffSet

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 9 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • JQXChart Pie Chart CenterOffSet #79951

    CUSENY
    Participant

    Hello,

    I saw an example where the CenterOffSet can be set using a function looking at item.itemIndex. Can the same be accomplished by looking at a particular data value? So for Example, Can I look at the “target” field and offset when = “Y”?

    var sampleData = [
    {“state”:”NY”,”perc”:20,”target”:”N”},
    {“state”:”PA”,”perc”:30,”target”:”N”},
    {“state”:”MA”,”perc”:50,”target”:”Y”}]

    Thanks

    JQXChart Pie Chart CenterOffSet #79968

    Peter Stoev
    Keymaster

    Hi CUSENY,

    Why not. Something like if (sampleData[3].target == “Y”) { // set centerOffset here }

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.