Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6548177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:55:12+00:00 2026-05-25T11:55:12+00:00

This question is a little long-winded, but essentially I want to modify a pie

  • 0

This question is a little long-winded, but essentially I want to modify a pie chart in jquery that was created using the struts jquery plugin.

I have a pie chart that i created using the struts jquery plugin chart module –>> http://code.google.com/p/struts2-jquery/wiki/ChartTag
This module is not as robust as the pure jquery implementation. What i want to do is add a threshold and maybe the hover/click events. There does not seem to be a way to add these to the struts jquery module. Is there a way to use jquery to update the chart after it’s already been created?

Here’s my code:

<sjc:chart
    id="chartPie2"
    cssStyle="width: 100%; height: 400px;"
    legendShow="true"
    pie="true"
    pieLabel="true"


>
    <s:iterator value="%{mapFromStrutsAction}">
        <sjc:chartData
            label="%{key} - %{formatCurrency(value)}"
            data="%{value}"
        />
    </s:iterator>
</sjc:chart>

What i want to do is somehow take this chart that’s created and modify it. As I mentioned, there are things in the jquery implementation that don’t seem to be available in the struts jquery plugin, like thresholds, combining slices, and hover/click effects (as found here –> http://people.iola.dk/olau/flot/examples/pie.html).

Here is my attempt, placed after the code above inside a block, which does not seem to really seem to change anything:

// INTERACTIVE
    $.plot($("#chartPie2"),
    {
        series: {
        pie: { 
            show: true,
            radius: 1,
            label: {
                show: true,
                },
                threshold: 0.1
            }
        }
    },
    legend: {
        show: false
    }
    });

});

Is it possible to modify the chart in this way after it was created?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:55:12+00:00Added an answer on May 25, 2026 at 11:55 am

    What happens if you try setting just the stuff you want via raw jQuery after the custom tag does its work?

    If that doesn’t work, then probably not. IMO the tags are for the simplest use-cases only; anything going beyond that you’re better off just coding JavaScript/jQuery.

    Another option is to just branch the plugin or individual tag, patch it to do what you want, then offer the patch back to the community so others can benefit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is going to be a little long and rambly, but I want to
I have this little question that's been on my mind for a while now.
I know this question might be little silly but I can't seem to find
Sorry if this question sounds a little silly, but I am not sure what
This question may seem a little bit stackoverflow-implementation specific, but I have seen a
This question will be a little longer and I am sorry for that :)
I little while back I posted this question . I have updated that question
Hello yeah I'm asking this question a second time, sorry about that but I
Disclaimer: I apologize that this question is so long. I have added code as
So, this question may be a little vague, but I have constant discussions about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.