This is a good technique to display current position on a timeline chart.
In the example below, i am making use of a getNow method in my backing bean to get start and end values as the same date.
Code:
<dvt:lineGraph id="lineGraph1" value="#{bindings.MyDS.graphModel}" subType="LINE_VERT_ABS" emptyText="No data"
seriesRolloverBehavior="RB_HIGHLIGHT">
<dvt:background>
<dvt:specialEffects/>
</dvt:background>
<dvt:graphPlotArea/>
<dvt:seriesSet>
<dvt:series/>
</dvt:seriesSet>
<dvt:o1Axis/>
<dvt:y1Axis/>
<dvt:timeSelector explicitStart="#{myBean.now}" explicitEnd="#{myBean.now}" mode="EXPLICIT"/>
<dvt:legendArea automaticPlacement="AP_NEVER"/>
</dvt:lineGraph>
Result:
No comments:
Post a Comment