Jump to content
JChartFX Community
  • 0

classic asp parameter to dispay jchart ?


ratrunner

Question

 Hello everyone,

 

I would like to know how to pass classic asp parameter to display in jchart's PIE char.

 

i have 2 variable here - <%=vCallResults%> <%=aCallResults%>, there 2 come from query in the behind asppage.

i'd like to assign and display on it. let me know how can i do that ?

 

 

thank in adv

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

The key here is to remember that everything will run on the client, start with a harcoded sample and then make sure your ASP generates the same script but with real data, if something fails check View - Source to make thing you are generating the same script, e.g.

    chart1.setGallery(cfx.Gallery.Bar);

    var data = [{"Year":"2012", Value:25}, {"Year":"2013", Value:45}];

    chart1.setDataSource(data);

 So your ASP would be something like

 <script language="javascript">

    chart1.setGallery(cfx.Gallery.Bar);

    var data = [{"Year":"2012", Value:<%=lastYearResults%>, {"Year":"2013", Value:<%=thisYearResults%>}];
 
    chart1.setDataSource(data);
 
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...