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