Jump to content
JChartFX Community
  • 0

BUG - 2 elements with identical ID




Just found another bug:



Please note, script produced 2 elements:

<div id="chart" class="jchartfx"> ...


<svg width="832" height="400" xmlns="http://www.w3.org/2000/svg"xmlns:sfx="http://www.softwarefx.com/ns" xmlns:xlink="http://www.w3.org/1999/xlink" id="chart" class="jchartfx">...



with the same id="chart", that should be fixed, it causes some issues in my app.


Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

We do generate those 2 divs, one for measuring and the second one is the svg rendering of the chart.


We will research if we can rename the measuring one but you never specified which issue is caused in your app as maybe there is a workaround for it.



Link to comment
Share on other sites

  • 0

Our current internal build will not assign an ID to the first div (used for rendering). This should be part of the pre-release bits soon.


Also note that if you have 2 charts in a page, we will be changing the ID of the second (and so on) svgs. In reality we do not need that ID at all but we are afraid we might break somebody who is using getElementById to get to the svg element.





Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...