This is a migrated thread and some comments may be shown as answers.

Script Timeout Errors

1 Answer 82 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 29 Oct 2012, 02:38 PM
I am having an issue with a chart in which I am specifying the categories explicitly in a list of DateTimes (using Razor).  The script appears to be looping and timing out (in FF and Chrome).  Here is a copy of the output script:

jQuery("#ComparisonChart").kendoChart({"chartArea":{"background":"transparent"},"theme":"BlueOpal","title":{"visible":false},"legend":{"position":"bottom","visible":true},"series":[{"name":"Series 1","type":"line","data":[363.02948999999984,386.43137096774205,394.77789677419366,391.96260344827596,397.30644838709674,380.5523633333334,401.997464516129,412.83990968253971,387.34019825268825]},{"name":"Series 2","type":"line","data":[123.63480299999999,173.04288387096773,171.53627741935486,159.57903965517241,154.44881935483869,149.10146999999995,157.6923290322581,170.64611530555553,167.9252829301075]},{"name":"Series 3","type":"line","data":[84.8014192,63.289669032258054,81.889754870967735,73.58135620689653,55.59777903225806,122.64908719999997,129.71715732258062,152.43915316269846,74.84976545698926]},{"name":"Series 4","type":"line","data":[139.20569980000002,190.72106548387103,175.20732,154.13307862068965,130.75742225806451,148.7146827666667,156.06423645161286,97.983419814285739,63.053801075268822]}],"seriesDefaults":{"line":{"width":3,"markers":{"visible":false}}},"categoryAxis":{"labels":{"font":"10px arial,serif","visible":true,"step":0},"majorGridLines":{"visible":false},"minorGridLines":{"visible":false},"title":{"text":"Date (11/01/2011 - 07/01/2012)"},"type":"Date","categories":["2011/11/01 00:00:00","2011/12/01 00:00:00","2012/01/01 00:00:00","2012/02/01 00:00:00","2012/03/01 00:00:00","2012/04/01 00:00:00","2012/05/01 00:00:00","2012/06/01 00:00:00","2012/07/01 00:00:00"]},"tooltip":{"visible":true}});

Is there something I am doing incorrectly there that I am not seeing?

1 Answer, 1 is accepted

Sort by
0
Tom
Top achievements
Rank 1
answered on 29 Oct 2012, 06:43 PM
I solved my own issue. I was calculating the step, which was coming out to 0 or infinity... Oops.

Hopefully this will help someone in the future.
Tags
Charts
Asked by
Tom
Top achievements
Rank 1
Answers by
Tom
Top achievements
Rank 1
Share this question
or