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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:51:37+00:00 2026-05-30T18:51:37+00:00

What’s up with Flex’s AreaChart bug, does anybody know how to fix it? It

  • 0

What’s up with Flex’s AreaChart bug, does anybody know how to fix it? It causes ones tooltips to display the wrong value for minFields.

I.e. for:

<mx:AreaSeries yField="TotalVariableCost" minField="TotalFixedCost" displayName="Total Cost">

It will show:

Total Cost
high: TotalVariableCost
low: TotalVariableCost

As opposed to:

Total Cost
high: TotalVariableCost
low: TotalFixedCost

This bug is suppose to be in lines 2058 to 2083 of AreaSeries.as – but that stuff is way beyond my comprehension.

–Stephen

  • 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-30T18:51:38+00:00Added an answer on May 30, 2026 at 6:51 pm

    Yep, it’s a bug in AreaSeries. Due to the stupid way that flex charts are designed, the only real way to fix it is to set a custom dataTipFunction on the AreaChart.

    Here’s a copy of the relevant code with the bug fixed:

    /**
     * Create a data tip function for the given AreaSeries. Uses a copy of
     * the formatDataTip code from AreaSeries with the minValue bug fixed.
     * 
     * @param series
     * @return a data tip function
     * 
     */
    private function createAreaSeriesTipFunc(series:AreaSeries):Function {
       var displayName:String = series.displayName;
       var dataTransform:DataTransform = series.dataTransform;
       var xField:String = series.xField;
       var minField:String = series.minField;
    
       // formatDataTip relies on AreaSeries member data so simulate that
       // with a closure to minimize code modifications
    
       return function(hd:HitData):String {
          var dt:String = "";
          var n:String = displayName;
          if (n && n != "")
             dt += "<b>"+ n + "</b><BR/>";
    
          var xName:String = dataTransform.getAxis(CartesianTransform.HORIZONTAL_AXIS).displayName;
          if (xName == "")
             xName = xField;
          if (xName != "")
             dt += "<i>" + xName + ": </i>";
    
          var item:AreaSeriesItem = AreaSeriesItem(hd.chartItem);
          var lowItem:AreaSeriesItem = (minField != "") ?
             item :
             null;
          dt += dataTransform.getAxis(CartesianTransform.HORIZONTAL_AXIS).formatForScreen(item.xValue) + "\n";
    
          var yName:String = dataTransform.getAxis(CartesianTransform.VERTICAL_AXIS).displayName;
    
          if (!lowItem)
          {
             if (yName != "")
                dt += "<i>" + yName + ":</i> ";
             dt += dataTransform.getAxis(CartesianTransform.VERTICAL_AXIS).formatForScreen(item.yValue) + "\n";
          }
          else
          {
             if (yName != "")
                dt += "<i>" + yName + " (high):</i> ";
             else
                dt += "<i>high: </i>";
             dt += dataTransform.getAxis(CartesianTransform.VERTICAL_AXIS).formatForScreen(item.yValue) + "\n";
    
             if (yName != "")
                dt += "<i>" + yName + " (low):</i> ";
             else
                dt += "<i>low:</i> ";
             dt += dataTransform.getAxis(CartesianTransform.VERTICAL_AXIS).formatForScreen(lowItem.minValue) + "\n";
          }
    
          return dt;
       };
    }
    

    I just changed formatForScreen(lowItem.yValue) to formatForScreen(lowItem.minValue) in one place. You can use it like this:

    <mx:AreaChart dataProvider="{chartData}" showDataTips="true" dataTipFunction="{createAreaSeriesTipFunc(areaSeries)}">
          <mx:series>
             <mx:AreaSeries id="areaSeries" yField="TotalVariableCost" minField="TotalFixedCost" displayName="Total Cost" />
          </mx:series>
    </mx:AreaChart>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how can I replace this 2 symbol below from the string
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
In my XML file chapters tag has more chapter tag.i need to display chapters
i want to parse a xhtml file and display in UITableView. what is the
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, 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.