score:-1
you can either store the previously selected lines globally and change whenever those lines when current line is selected or maintain css class name between the two states.
Source: stackoverflow.com
Related Query
- How to select and deselect a svg line and change its color on selection and deselection using d3.js and javascript , jquery?
- how to change C3JS vertical tooltip line color and hide y axies line
- How to use d3.js to select an svg element and modify its attr?
- How can I choose an specific SVG in d3 and change its attributes?
- How to select a particular element in g elements and change its status in D3.js
- D3 how to change the width and length of SVG
- d3.js change color and size on line graph dot on mouseover
- How to change line color in d3js according to axis value?
- How can I set the each line color or width in SVG path
- c3 graph in a dark background; how to change axis and tick value color
- D3: Select SVG attribute and change it
- How to change color of line in line chart using dimple.js?
- How to position svg circles on a line and curve it?
- How to change table cell color based on numeric value from .csv report AND when tables are dynamically created?
- How do I change color of path element when its value is selected from dropdown
- How to change the color of a d3.js axis line
- D3 Line Chart- Adding line interactivity: How to get id's and select a line with each?
- How to change json file in d3.js and update chart using select options
- How to change color of a data point in line chart according to a condition?
- How to generate a d3 selection consisting exactly of a DOM element and all its descendants?
- How to Select Element by Class and Retrieve its ID in D3
- How to select the color of node on data value and the Data value of tool as name?
- How to change color of multiple SVG nodes from onClick
- D3.JS how to load 3 csv files and change data on line chart with button click event?
- How to change color of line according to threshold values in C3.js/D3.js charts?
- How to change color only for data grid or x and y axis in chart in D3.js
- In D3, how can I switch color of a square between gray and its initial color?
- D3.js: change bar color AND another svg color on click
- How to set the width and height of svg to be equal to its g?
- How to translate SVG and all its children
More Query from same tag
- how to access data from nested json array D3
- Contour plot from scattered data in JavaScript
- In d3 how can I get the value between two points?
- Create dataset from array of numbers with d3.js
- pass arguments to a d3 on "click" event callback
- D3js - Getting max value from d3.line() for a specific domain
- Why does my line chart transition looks laggy?
- Creating multi graph using multiple JSON array datasets
- Creating a heatmap of two different types for d3
- How to apply individual parameters to easing in transitions?
- d3 get x, y values on click
- getting data to an AngularJS directive for D3.js on Mean.js app
- How to add an image inside a nvd3 bar chart?
- d3.js Molecule Diagram only working on the last element of the object
- How to create vertically grouped bar chart in d3.js using json data?
- How increase height dynamically by fixing width of the rect box in d3 js
- d3.js Multi-series line chart interactive (tsv into literal data)
- brush and context for a line graph
- Ember Action on mobile device orientation change
- Round the edges of a closed path in d3 donut chart
- D3 v4: Determine which property to extract from geoJson depending on click event
- D3.js v4 - set padding for bar chart
- Confusion about d3.interpolateObject
- Update d3 chart
- How to select a particular element in g elements and change its status in D3.js
- Drawing a waveform with D3
- Zooming to a clicked node on a D3 Force Directed Graph
- How do I change the value of the y-axis by 30 instead of 10?
- Integrating Google Calendar data with D3.js based Calendar
- How do I set a different range for line chart embedded in a bar chart using d3.js