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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:47:56+00:00 2026-06-01T15:47:56+00:00

Feeling I had not enough control over the chart if I had used a

  • 0

Feeling I had not enough control over the chart if I had used a grouped column chart, I made my own version by just adding different series to the chart. After all the store, the number of series, their colors and such all need to be set dynamically and not hard coded. So basically this is what I have:

chart = Ext.create("Ext.chart.Chart", {
     store: dataStore,
     axes: dynamicAxes,
     series: series
});

I leave out the not interesting stuff such as width, height of the chart etc.
now I have a method whichs returns a series object. This is added to the series array mentioned in the code above. The function has a “item” object parameter and also an idx param which is the index of the item object from the array it comes from, and a max param which is the size of the item array

the function returns something like this:

var w = (typeof (max) !== "undefined" && max !== null) ? this._getWidthByMax(max) : 30;
return {
         type: "column",
         axis = "left",
         xField = "timestamp",
         yField = item.id, // store field name equals the id of the item object
         style = { stroke: colorCode, "stroke-width": (item.isDefault) ? 2 : 1,   fill: colorCode },
         width = w, 
         renderer = function (sprite, rec, attr, bix) {
            var nx = idx * w;
            return Ext.apply(attr, { translation: { x: nx} });
         }
     }

now this works fine for the number of columns I want to have. That can be one, two, three… up to seven currently.
However, if I want to hide a series, the following call doesn’t work:

chart.series.getAt(idx).hideAll();

while it does work if I render my chart as a line chart.
is this a bug in Ext-js 4 or is it because of how I rendered the series for my column chart?

  • 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-01T15:47:58+00:00Added an answer on June 1, 2026 at 3:47 pm

    since nobody has replied to my question and I have found a solution in the meantime, I might as well answer my own question…

    the problem occurred in Ext Js 4.0.7.
    With version 4.1 RC 2 the hideAll behaved correctly.

    So the solution, for anyone who would have the same problem, is to upgrade to 4.1 RC 2 or newer.

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

Sidebar

Related Questions

While learning Haskell I had the feeling that the authors where not always telling
I've always had a weird feeling in my gut about actually deleting rows from
I've had some exposure to Visual Studio, but not a great deal, as well
I have a feeling that this should really not be all that difficult, yet
I have had a nagging feeling for some time that I may be ignoring
Gut-feeling: It looks a little bit like two threads both try to initialise disk-based
What is the general feeling amongst developers regarding the changing of files in the
I have the feeling that is easy to find samples, tutorials and simple examples
I got this bad feeling about how I insert larger amounts of HTML. Lets
I have a feeling that I already know the answer to this one, but

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.