Skip to content

Conversation

@Foxtra
Copy link

@Foxtra Foxtra commented May 23, 2019

Hey! There is array of dateMarker feature, please check

) {
for (var i = 0; i < state.dateMarker.length; i++) {

state.dateMarkerLine.push(state.svg.append('line').attr('class', 'x-axis-date-marker'));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this won't be able to react to changes in props. Every time the graph is re-rendered a new line will be added to the DOM. Similarly they will not be removed if the prop changes value. The maintenance of these objects should be done with an enter/update/exit d3 pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants