
|
If you were logged in you would be able to see more operations.
|
|
|
| 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>
.....
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:
|
|
In Flex 3 one could use "showAllDatatips" as a workaround (when this flag is used, the data tip is rendered).