LineChart.pre.js contains the following line in the initialization code:
```
id = id.replace("_ctl00", "");
```
I am not sure why its there, but it causes problems any time the chart control is deep inside a control hierarchy with a name like "ctl00_ctl00_Main_Main_LineChart1".
Incidentally, the LineChart control also doesn't work (similar javascript error) if the ClientIDMode is set to Static.
```
id = id.replace("_ctl00", "");
```
I am not sure why its there, but it causes problems any time the chart control is deep inside a control hierarchy with a name like "ctl00_ctl00_Main_Main_LineChart1".
Incidentally, the LineChart control also doesn't work (similar javascript error) if the ClientIDMode is set to Static.