Jump to content
JChartFX Community
  • 0
notzippy@gmail.com

Calling functions

Question

I could not find this information elsewhere, so I thought I would share. If you are looking for the jquery implementation of the chart method calls like for example the following

    chart1.getPoints().getItem(0, 4).setTag("Turkey");

    chart1.on("gettip", onGetTip);

it is quite easy, assuming the div id for your chart is chart1

$(#chart1).chart("getPoints").getItem(0, 4).setTag("Turkey");
$(#chart1).chart("on","gettip",onGetTip);

So anything you pass into the chart method will be the method call, and the rest of the arguements are arguments for the method call. 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0


 got it figured out from a previous post and was able to get a reference to the chart and set the color using:

 

chart1 = $('#myDiv');

chart1.chart("getPoints").getItem(-1, 0).setColor('<%=SeriesColor1%>');

 

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

×