Jump to content
JChartFX Community
  • 0
Sign in to follow this  
JChaps

Resize Chart

Question

Hi,

 

I'm trying to get my chart to resize, and I'm wondering the best way to do that. I did see a post titled "Resize the chart" which suggested the following:

 

  • chart1.doUpdate(true);
  • chart1.chart_ud(true);

 

Neither of which is working for me. I did find a way, by re-setting the datasource and adjusting the width and height of the div. What is the best way to do this? I'm trying to get this to work in IE11.

 

I've attached an html any help is appreciated.

test.html

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Changing the data source has the disadvantage that we have to reprocess the data (even though nothing has changed).

 

In the current version of the scripts (and this will not change moving forward) you can invoke doUpdate as follows

 

lineChart.doUpdate(true)

 

In previous builds this function was being "minified".

 

Regards,

 

JuanC

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×