|
|
|
Junior Member
      
Group: Forum Members
Last Login: 10/23/2008 2:21:50 AM
Posts: 16,
Visits: 36
|
|
can anyone post a sample example on how to animate trendline?
below are codes to add trendline:
// construct parameter for TreandLine
$strParam = "startValue=$stValue;endValue=$edValue;color=FF0000;displayvalue=Roll. Avg.; thickness=2;isTrendZone=0;showOnTop=1";
// add trendline with parameter
$FC->addTrendLine($strParam);
I am not sure how to add the styles with php. Is it can only be done with XML?
Thank you for any input
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 7:54:06 AM
Posts: 644,
Visits: 1,948
|
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 10/23/2008 2:21:50 AM
Posts: 16,
Visits: 36
|
|
by getting fusion chart v3 (without getting fusionwidget, fusionmap, and powerchart),
what kind of animation can be done with the trendline? e.g. moving from bottom to top maybe?
Thank you for your answer
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 7:54:06 AM
Posts: 644,
Visits: 1,948
|
|
hi, Yes, it is possible in V3 by using styles. You can use this code for animation of trendlines moving from bottom to top.use for v3 only <trendlines> <line startValue='22000' endValue='22000' color='999999' displayValue='Target' dashed='0' thickness='2' dashGap='6' alpha='100' showOnTop='1'/> </trendlines> <styles> <definition> <style type='animation' name='TrendAnim' param='_y' duration='1' start='$canvasEndY' Easing='bounce' /> </definition> <application> <apply toObject='TRENDLINES' styles='TrendAnim' /> </application> </styles>
Thanks,
Arindam FusionCharts Team
www.fusioncharts.com
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 10/23/2008 2:21:50 AM
Posts: 16,
Visits: 36
|
|
If I have more than 1 trendline and only want the animation to be applied to one of it.
How do I apply the style only on that trendline?
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 4:19:22 AM
Posts: 885,
Visits: 1,422
|
|
Hi,
I am afraid, this is not possible individually as of now.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 10/23/2008 2:21:50 AM
Posts: 16,
Visits: 36
|
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 7:54:06 AM
Posts: 644,
Visits: 1,948
|
|
|
|
| | |