History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: FLEXDMV-1683
Type: Bug Bug
Status: Closed Closed
Resolution: Deferred
Priority: C C
Assignee: Sangavi Gururaghavendran
Reporter: Jason Krottner
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Flex Data Visualization Components

dataTipFunction for LineChart is not executed when one item in dataprovider

Created: 03/12/08 11:29 AM   Updated: 09/24/08 10:47 AM
Component/s: Charts:Interactions
Security Level: Public (All JIRA Users )

File Attachments: 1. File LineChart_SingleDataPoint_DataTip.mxml (1 kb)
2. File LineChart_SingleDataPoint_DataTip.swf (418 kb)

Image Attachments:

1. nodayonedata.GIF
(34 kb)
Issue Links:
Cloners
This issue is cloned by:
FLEXDMV-1792 Still not fixed -dataTipFunction for ... C Waiting on Info
 
Relationship
This issue relates to:
FLEXDMV-14 LineSeries: renders line to be partia... Closed
FLEXDMV-446 LineChart need to add padding easily C Closed
 

Severity: Non Functioning
Reproducibility: Every Time
Discoverability: Low
Found in Version: RC Moxie - 193968
Affected OS(s): All OS Platforms - All
Steps to Reproduce:
Steps to reproduce:
1. Create LineChart with one LineSeries
2. Set dataProvider for LineChart with one datapoint
3. Set a dataTipFunction for the LineChart
 
 Actual Results:
 Datatip does not show on mouse over. A breakpoint within the dataTipFunction is never hit. When a second datapoint is added to the dataProvider, all datatips are displayed when mouse over.
 
 Expected Results:
 Show the datatip when only one datapoint in dataProvider of a LineChart.
 
 Workaround (if any):
One can use the "showAllDataTips" flag. This flag when set, shows the data tips.

Sample Code:

....
<Script>
        <![CDATA[
        
    private var dp:ArrayCollection = new ArrayCollection([{day:"Monday", value:7792}]);

    public function showTips(hd:HitData):String
   {
      return "Day:" + hd.item.day+ "\n" + "Value" + hd.item.value;
   }
           
        ]]>
</Script>


<VBox width="100%" height="100%" right="5" left="5" top="10" verticalGap="0">
    <LineChart id="myLC" dataProvider="{dp}" showDataTips="true" dataTipFunction="showTips">
        <horizontalAxis>
            <CategoryAxis categoryField="day" />
        </horizontalAxis>
        <series>
             <LineSeries xField="day" yField="value">
                <stroke>
                     <Stroke color="blue" alpha="1" weight="1" />
               </stroke>
               <fill>
                   <SolidColor color="blue"/>
                </fill>
               <itemRenderer>
                   <Component>
                       <CircleItemRenderer />
                   </Component>
               </itemRenderer>
         </LineSeries>
     </series>
   </LineChart>
</VBox>

.....

 
 
Language Found: English
Bugbase Id: none
Triaged: Yes
Regression: No
QA Owner: Sangavi Gururaghavendran
Resolved by: Jyoti Kishnani
Fixed Version: (Planning) DMV Post Moxie - Next Build
Participants: Christian Grail, Deeptika Gottipati, Jason Krottner and Sangavi Gururaghavendran


 All   Comments      Sort Order:
Sangavi Gururaghavendran - [03/13/08 12:12 AM ]
This issue is present in 2.0.1 version also.

In Flex 3 one could use "showAllDatatips" as a workaround (when this flag is used, the data tip is rendered).

Sangavi Gururaghavendran - [03/13/08 12:16 AM ]
Added bug file

Deeptika Gottipati - [03/13/08 07:41 AM ]
This issue is seen because of setting padding of CategoryAxis to 0 by LineChart irrespective of setting it explicitly.

Workaround is to set padding of CategoryAxis to a non-zero positive value in updateComplete() of LineChart

Christian Grail - [06/20/08 05:46 AM ]
When i set the padding of the CategoryAxis to a positive Number during the updateComplete event, my application doesn't react anymore.