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 7845129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:07:38+00:00 2026-06-02T17:07:38+00:00

This issue is so deceptively simple that I’m having trouble getting my head around

  • 0

This issue is so deceptively simple that I’m having trouble getting my head around what the problem is.

I have a jqPlot line chart (“plot1”) with a single series and a legend. I’ve bound the .click event of an anchor on my page to call the following function:

function changeSeriesColor() {
    plot1.series[0].color = "#33ff66";
    plot1.replot();
}

The event fires and calls the function without errors. The series color on the LEGEND is updated to the new color but the LINE color is unchanged. The jqPlot docs don’t have much to say about this sort of thing (I wish there were more, and more diverse, examples) and I can’t find anything on stackoverflow or anywhere else that addresses this.

This behavior is consistent in Chrome 12.0.742.112, Firefox 6.0.2 and IE 9.0.8112.16421 so I’m pretty sure it’s not some weird browser-specific quirk.

I’m at a loss on this one. Help?!

  • 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-06-02T17:07:40+00:00Added an answer on June 2, 2026 at 5:07 pm

    I am late but for any others who come across this problem, this may be of use?
    (from https://bitbucket.org/cleonello/jqplot/issue/358/replot-ignoring-seriescolor)

    Unfortunately, modifying plot options post plot initialization has no
    effect for replot/redraw. This isn’t a bug. those options are used
    only at initialization to set properties on the renderers. Changing
    them after the plot is initialized has no effect.

    What you can do is change the relevant properties on the rendereres.
    In your case, this would be:

      this._jqChart.series[0].renderer.shapeRenderer.strokeStyle = colors[0];
      this._jqChart.series[0].markerRenderer.shapeRenderer.strokeStyle = colors[0];  // if markers not filled.
      this._jqChart.series[0].markerRenderer.shapeRenderer.fillStyle = colors[0];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this issue with ComboBox that uses IEnumerable<Brush> as ItemsSource; the problem lies
[EDITED] This issue was originally described as my having trouble with Perl's Socket, but
This issue is very likely codeigniter specific. I have a controller called redirect.php that
This issue may have be raised here before, but I am not confident that
This issue is driving me crazy. I have a WCF service that uses a
This issue is that i am getting the error, Microsoft JScript runtime error: Object
This issue is somewhat related: Problem with Code Generated by XSD.EXE: Sequence of Elements
Note: This issue appears to be limited to SQL Server 2005 SP2 I have
I've been investigating this issue that only seems to get worse the more I
I know this issue has been touched on here but I have not found

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.