score:1
Accepted answer
You can use empty array as entry value. This works ok:
[["data1",30,200,100,400,150,250],[],[],["data2",50,20,10,40,15,25]]
And modify your filtering function to skip arrays without length:
function checkIfNull(x) {
return (x.length);
}
See updated fiddle
Source: stackoverflow.com
Related Query
- How to use sparse arrays with C3 charts?
- How to Use D3 charts with angular 2 or 4
- With d3.js, how can I use the same script to create 3 charts with 3 datasources?
- How to use Map.get() with array of arrays
- How to use D3 selectAll with multiple class names
- How do I resolve "[ERR_REQUIRE_ESM]: Must use import to load ES Module" when using D3.js 7.0.0 with Next.js 11.0.1?
- How to use 'this' in Angular with D3?
- How to draw logarithmic line charts with nvd3
- How to use D3 zoom behavior with ViewBox instead of transform
- How can I use d3-scale-chromatic functions with a domain other than [0, 1]?
- How to use x and width in a bar chart with scaleTime?
- How to use D3 force layout with existing SVG elements as nodes
- how to use .scale and .translate with d3.js?
- How to use d3.symbols with an ordinal scale
- How to use d3's each method with ES6 arrow notation
- How to use Leaflet.js plugin with Stamen maps?
- how to use svg:defs to create rect with same height in d3.js?
- How to draw line charts with complex data structures in d3
- How to properly use the Use tag in SVG with d3 js?
- How to make D3.js use UTC times for the x-axis, with Moment.js
- I am trying to use multiple 2 arrays for binding data for svg circles but cannot figure out how
- How to user JSON arrays with d3
- How to draw spiral bubble charts with d3.js
- How can I use D3.js "onClick" event with an nvd3 bar when zoomed in on chart data?
- How to use d3 v4 with Polymer 2.0 classes?
- How to make multiple charts with d3.chart using nested data
- How to use the quantize function with my json data file
- How to use an exit selection on text with tspan
- How to use the filter method with the update pattern?
- How to use D3 to load csv, display table and style it with bootstrap in javascript
More Query from same tag
- Add image to D3.js Sunburst Example
- How to fix truncated y-axis and x-axis
- How to set the background-color of a D3.js svg?
- d3.js update pattern not working as expected
- Smooth Javascript mousemove similar to Cubism.js
- d3 height function returns NaN
- Change x scale of path dynamically d3.js
- Collapisible Tree
- How to generate part of html code on server side (nodejs)?
- Is there a correct way to spot non-fatal errors in js?
- How to save the last state of sliders after page reload
- Legend in force-directed graph
- Iterating over object properties in Ember
- Bluemix Kafka streams
- D3: Append duplicates of a selection
- D3js-Topojson : how to move from pixelized to Bézier curves?
- How do I capture keystroke events in D3 force layout?
- Filtering CSV records in d3.js enter/update based on user input
- Dimple.js line chart with composite axis, no links between points on series
- Nest data containing arrays with d3.nest
- D3 Line Chart not having proper X & Y axis plotting with Labels
- Javascript D3 Charts Error Parsing
- Using json in d3
- Is there any way to export d3 output to visio file?
- How can I toggle the class of all elements in a selection?
- Can I get a value returned from a $.Deferred() that can be used in the display?
- D3-request retrieval of a google spreadsheet csv/json file fails
- calculate the date diff in javascript from JSON array
- How to cumulate d3.rollup data by year
- D3.js linear regression