Dec 09, 2013, 2:19 AM
Script taking too long to run when TimeAxis used in Chart
I have a simple chart with dates on the horizontal axis. When I use a CategoryAxis like below, everything works fine.
new CategoryAxis()
{
Title = "Sampling Date",
Position = Position.Bottom,
Grid = true,
Fields = new string[] { "SamplingDate" },
Label = new AxisLabel()
{
Font = "10px Arial",
Rotate = new RotateAttribute() { Degrees = 270 },
Renderer =
{
Handler = "return Ext.util.Format.dateRenderer('d-M-Y')(value);"
}
}
}
However, when I switch to a TimeAxis, like below, I get a script that takes too long to execute.new TimeAxis()
{
Title = "Sampling Date",
Position = Position.Bottom,
Grid = true,
Fields = new string[] { "SamplingDate" },
DateFormat = "d-M-Y",
Label = new AxisLabel()
{
Font = "10px Arial",
Rotate = new RotateAttribute() { Degrees = 270 },
}
}
The warning I get is: