animating trendlines
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


12»»

animating trendlines Expand / Collapse
Author
Message
Posted 8/26/2008 10:47:56 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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
Post #8178
Posted 8/27/2008 5:29:37 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 7:54:06 AM
Posts: 644, Visits: 1,948
animating trendlines is not possible in free version of FusionCharts

Thanks,
Arindam

FusionCharts Team
www.fusioncharts.com

Post #8186
Posted 9/4/2008 10:52:36 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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
Post #8352
Posted 9/5/2008 12:58:28 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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

Post #8362
Posted 9/10/2008 8:09:06 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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?
Post #8434
Posted 9/12/2008 3:10:10 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #8461
Posted 9/21/2008 10:20:29 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 10/23/2008 2:21:50 AM
Posts: 16, Visits: 36
Arindam (9/5/2008)
hi,
Yes, it is possible in V3by 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>


I really need some help here

I used the code that you gave but it still gives me animation from bottom to top..
and to make it worse.. that code wont work unless i gave a value on the start parameter..
e.g. start='$canvasEndY+1'
can anyone help me with this? I need to have bottom to top animation
Post #8689
Posted 9/22/2008 12:32:01 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 7:54:06 AM
Posts: 644, Visits: 1,948
Hi,

Could you please provide us your XML code?

Thanks,
Arindam

FusionCharts Team
www.fusioncharts.com

Post #8691