Jump to content
JChartFX Community
  • 0

Smoother Animation?


ld_7

Question

Hi all,

I'm doing a demo locally, as basic as can be. My animation isn't really slick like how it is on the jChartFX website. It just renders from left to right, as opposed to growing simultaneously and slick. Any ideas on what I'm missing? I'm just including this:


     <link rel="stylesheet" type="text/css" href="styles/jchartfx.css" />

    <script type="text/javascript" src="js/jchartfx.system.js"></script>

    <script type="text/javascript" src="js/jchartfx.coreVector.js"></script>

    <script type="text/javascript" src="js/jchartfx.animation.js"></script> 

Is that order right? Are there more includes needed or additional calls that I need to make to get it to be smooth?


Thanks, looking forward to a reply!

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

**RESOLVED**

 

HI all I was able to resolve this - it seems I had to setup the chart in the right way - I used two series and for some reason the presence of two in the way that I did it caused the animation to be choppy. Quite odd but after starting over again it worked, so just error on my part :)


Thanks! 

Link to comment
Share on other sites

  • 0

If you are using a line chart, our next build should improve performance for our default animation (from left to right), in certain scenarios this animation might look smoother for line charts

chart1.getGalleryAttributes().setAnimationStyle(cfx.LineAnimation.YData); 

Obviously the number of elements (points, series) will affect the animations performance but if you have a sample that exhibits poor performance please post it here (or send it to sales@softwarefx.com) so we can take a look at it.

Regards,

JuanC 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...