ratrunner Posted January 26, 2014 Report Share Posted January 26, 2014 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 Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted January 28, 2014 Report Share Posted January 28, 2014 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 Quote Link to comment Share on other sites More sharing options...
Question
ratrunner
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
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.