[[Template core/front/global/follow is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
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.
[[Template core/front/global/follow is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
Question
yogesh
Hi,
I was trying to add axis section based on x-axis range. Here is my sample code:
var items = [{"Date":"Thu 11/15/2012 18:34","Value":5972.0},{"Date":"Thu 11/15/2012 17:38","Value":4196.0},{"Date":"Thu 11/15/2012 16:53","Value":4198.0},{"Date":"Thu 11/15/2012 15:37","Value":4233.0},{"Date":"Thu 11/15/2012 14:38","Value":4401.0},{"Date":"Thu 11/15/2012 13:42","Value":4487.0},{"Date":"Thu 11/15/2012 12:39","Value":4678.0},{"Date":"Thu 11/15/2012 11:41","Value":4939.0}];
. . .
var axisSections = chart1.getAxisX().getSections();
var section = new cfx.AxisSection();
section.setFrom("Mon 11/12/2012 00:36");
section.setTo("Sat 11/17/2012 14:30");
section.getGrids().getMajor().setVisible(true);
axisSections.add(section);
It was not working for AxisX. Although if i use AxisY range, it works fine. Can you please help me how to achieve the same for AxisX.
Thanks in Advance!!
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.