angular-dc icon indicating copy to clipboard operation
angular-dc copied to clipboard

Edge version of dc.js breaks line charts

Open lfarrell opened this issue 10 years ago • 2 comments

Line charts no longer appear to work, including your example NASDAQ line charts. They throw the following error: Error: An invalid or illegal string was specified. The issue appears to have been introduced in dc.js 2.0.0-alpha.3, as it works fine with dc.js 2.0.0-alpha.2.

Thanks,

Dean

lfarrell avatar Jan 02 '15 18:01 lfarrell

Tom,

The issue appears to be that invalid clip path id's are being generated if you don't specify an id for a chart. For example, #1-clip is being generated for the first clip path if no id is specified. Since an id can't start with a number the selector fails. If I specify an id dc.js takes it and appends "-clip" to it, and everything works fine.

Apparently, dc.js 2.0.0-alpha.2 and lower were taking advantage of a bug when it generated ids, as #1-clip works just fine there. So, I'm not sure if this is a dc.js issue or an angular-dc issue. Hope this helps.

Thanks for all your hard work,

Dean

lfarrell avatar Jan 02 '15 20:01 lfarrell

@lfarrell Thanks for the bug report, will try to look into this soon.

TomNeyland avatar Feb 03 '15 23:02 TomNeyland