score:0
This seems to be an issue with the scale, so when there is only one data the default behavior is considering it as a date but after transforming it's considered as a number and the junk value is coming as last 3 digits of the number i.e, in your case startTime: "1574504520049" is .049
So if you update the scale to somewhere near that you will be able to get time as
d3.zoomIdentity.translate(100, 50).scale(0.0000000001)
Please check https://github.com/d3/d3-zoom/issues/57
it will help you find a proper scale for the problem.
Source: stackoverflow.com
Related Query
- d3 chart is showing some decimal value in the X axis tick, instead of showing the date and time
- d3 axis not showing tick label if two ticks have the same value
- How to display the value for the final tick on axis in D3?
- Changing the value of x-axis (ordinal) tick values in a D3 grouped chart
- D3.js - Adding a tick value on the x axis (date format)
- d3 Plus bar chart how to force fixed max y axis range independent of the max data value
- D3 Line chart - display value label on Y axis tick and a not scale
- d3 axis is not showing any values if there is only 1 value in the domain
- MultiBar chart with nvd3 / d3 only shows labels for every other tick on the x-axis. How can I get them all to show up?
- Make simple bar chart using C3 with separate columns on the x axis
- D3 v4 - Get the value of the each tick present on an axis?
- NVD3 - Showing empty chart instead of noData message
- Decimal value on d3.js y axis
- How do you change the last tick value in D3.js?
- d3 bar chart y axis ticks and grid lines above max value
- c3 graph in a dark background; how to change axis and tick value color
- How do I specify the number of axis tick marks in d3?
- Add extra tick of the beginning of a d3 time axis
- D3: How to remove tick marks at the top and bottom of Y axis
- dimple.js How can I change the labels of a chart axis without changing the data?
- How to modify axis labels in d3 for a stacked bar chart when the axis labels are mapped as part of the scale's domain
- Replace the decimal dot with a comma on an axis in D3?
- d3.js: How to add value below the label in donut chart
- D3.js - show tick values on the Y axis
- d3.js axis add tick value
- D3 hide overflow of the chart area, when Y axis has a min and max
- Limit number of Y axis ticks by keeping a top tick above the bar in d3
- How to pass the tick value on to the tooltip
- c3.js - show tick label/value when zooming the chart
- d3.ticks() in d3 v4 often gives a top tick value lower than the highest value in the range
More Query from same tag
- Combining angularJS and d3.js: Refreshing a plot after submitting new input parameters
- Loading data with vanilla D3.js
- How to avoid sluggish d3 force layout on Android?
- brush and context for a line graph
- nvd3 data holes in charts
- TypeScript : Argument Type Function is not assignable to parameter type function
- How to use Map.get() with array of arrays
- 'nvd3' is not a known element: 1. If 'nvd3' is an Angular component, then verify that it is part of this module
- Simple way to represent force/flow directed, weighted graph?
- NVD3 - Using JSON url data with LinePlusBarChart (mapping values)
- Adding svg element with D3 in knockout and breeze
- How to sort a map-of-maps (hierarchy) with D3.js
- d3.js diagram line is larger than range
- d3 synchronizing 2 separate zoom behaviors
- How does text on SVG not update but text on a div does?
- Save svg to disk as png image - browser discrepancy
- Clipping of overflowing div inside foreignObject during translate in Firefox
- Sort links D3js force directed graph
- Table based on csv data not updating properly d3js v4
- d3Network: How can I relate nodes to links?
- Ionic Framework Typescript: Callback function is not able to access `this` variables
- prevent d3 donut chart from sorting automatically
- Adding arrows and text to nodes in d3js Force Layout
- d3: Coloring Multiple Lines from Nested Data
- D3 chart is not clearing before redrawing
- Drawing Paths Between Circles
- Why my d3 line chart only has two ticks on x axis?
- D3 and color grid
- d3js error on decrementing datapoints - how to resolve?
- Draw Line chart with positive & negative values