score:1
Just use the tooltip valueFormatter to handle NaN values. e.g. here's what I do in a similar situation.
multiChart.interactiveLayer.tooltip.valueFormatter((value, i, datum) => {
if (
datum.key === keyForActualGreaterThanPredicted ||
datum.key === keyForActualLessThanPredicted
) {
const diff = Math.abs(datum.data.y0 - datum.data.y1);
if (diff === 0) {
return '-';
}
return diff;
}
return value;
});
Source: stackoverflow.com
Related Query
- nvd3 data holes in charts
- How to add JSON data to nvd3 charts
- NVD3 Charts not rendering correctly in hidden tab
- custom no data label in nvd3 scatter chart
- NVD3 line chart with realtime data
- dc.js add class to data points in multiple charts based on criteria from first chart
- Is it possible to have zooming option in NVD3 charts as like in Highcharts?
- How to draw logarithmic line charts with nvd3
- NVD3 - How to refresh the data function to product new data on click
- Data for sunburst charts with d3.hierarchy using D3js v4
- x-axis dates don't align with y-axis data in nvd3
- NVD3 - uneven ticks when updating data
- Is it possible to draw these charts with nvd3 or similar?
- Load Json data into nvd3 graph
- Is it possible to load csv data to nvd3 library?
- Two bar charts from same data object using D3.js
- NVD3 charts using Node js
- d3 line and area charts not updating with new data array
- D3 with AngularJs, Multiple charts on same page with different data based on common key
- How to draw line charts with complex data structures in d3
- Using .filter() in d3.js to return data from corresponding x-axis point on multiple charts
- NVD3 Line Chart doesn't display when data passed using ajax - data.map is not a function
- Loading csv data with d3.csv in nvd3 multiBar Chart example (JSON format)
- Passing data for nvd3 chart from Flask as an argument
- radio buttons in nvd3 charts
- React + d3 multiple charts components with different data
- Loop over JSON data to create d3 pie charts
- want to generate multiple charts in d3 in same page for different data set
- How to make multiple charts with d3.chart using nested data
- How to stagger bullet charts using nvd3 , d3, javascript
More Query from same tag
- d3.js - Check parentNode value
- Manipulate d3.js pack layout with HTML5 Range Input
- Converting d3.js SVG code to a standalone program — Example?
- Javascript return OR with assignment of value?
- node labelling not working d3 v5
- What is the difference D3 datum vs. data?
- D3.js: get value of selected option?
- Render text in center of line in d3.js
- Remove Mapbox polyline on mouseout
- Add text label to d3 node in Force layout
- Select all instance of a word in a rendered webpage
- Retriving JSON from Flask endpoint
- how to combine angularjs dynamic text input with d3js-created svg circles for filtering
- grunt build removes d3.js and google fonts from application
- why is arc labels blurred in my d3js pie chart?
- d3 Links Not Properly Hiding
- Changing interactions from D3 v3 to v4
- How do you add rotation logic for mobile devices upon dragging on a 3d globe with D3.js and html canvas
- How to plot D3.js gantt chart
- Add borders to SVG path d3 javascript
- drag whole nodes in force directed graph d3
- Dynamically updating in d3 works for circles but not external SVGs
- How do I properly sort the data for my d3 bubble map so that smaller bubbles show up on top of larger bubbles?
- Trouble drawing lines from data in d3.js + data manipulation
- How to make information box and attach it with chart in d3.js
- Changing number of ticks in parallel coordinate d3 V4
- Trying to Position SVG OVER Map, not UNDER it
- Cubism d3 dependency with requirejs
- Transitioning the clipPath when the data is updated
- How to export D3js Bar Chart race to MP4/ Video