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

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...