score:1
Accepted answer
This is issue is solved if it is used range()
insted of min()
and max()
. For some reason it doesn't update correctly with the later methods.
updateY() {
const maxNumber = Number(this.maxValue);
const minNumber = Number(this.minValue);
this.lineView.chart.axis.range({max: {y: maxNumber}, min: {y: minNumber}});
}
Source: stackoverflow.com
Related Query
- Y axis of chart doesn't update correctly in Billboard.js
- dc.js bar chart with ordinal x axis scale doesn't render correctly
- Billboardjs chart update visibility of y axis after chart generation
- How do I update the y axis of the chart using D3 js
- D3 bar chart axis not scaling correctly
- How to get axis to display correctly on grid based (heat map) chart with d3
- D3 multiline chart on update crosses axis
- How to update axis in a chart with dispatch events d3js
- How to correctly set X axis values to D3 chart
- How to update axis using d3.js
- NVD3 chart fails to calculate legend text length in Chrome, since Window.getComputedStyle does not return font-size correctly
- Dynamically update chart data in D3
- Update the y-axis of a brushed area chart
- D3 line chart axis text labels in multi line
- How to update d3.js bar chart with new data
- Make simple bar chart using C3 with separate columns on the x axis
- nvd3.js-Line Chart with View Finder: rotate axis labels and show line values when mouse over
- NVD3 Line Chart X Axis Ticks Are Missing
- Stacked Area Chart in nvd3js - X Axis overflow
- D3 update dataset on click and redraw the bar chart
- Hide all text on y axis dc.js bar chart
- Setting Y axis range in dc series chart
- d3 bar chart y axis ticks and grid lines above max value
- add y axis label to NVD3 Multi-Bar Chart
- update d3 pie chart with new data.json
- How to Update bubble chart in d3.js?
- Y axis label not displaying large numbers - Multi-Bar Chart
- DC.js bar chart with date axis
- Make a chart with area charts having both positive and negative y axis in dc or d3.js
- D3.js update bar chart from json
More Query from same tag
- Rotating rectangles on an arc in D3js
- Scatter plot with percentage Axis in dimplejs
- Border radius in SVG d3
- d3 v4: Data join for bar chart
- un stacking a stacker area chart in d3
- Node generation from json data for force layout
- Dynamically updating datamaps fill color not working using variable as country key
- D3 Force Nodes Clustering at Top Left
- d3 - return only data without header
- Changing the colour of the node in Sankey Diagram using D3.js library.
- How to get data of parent node in d3.js
- Nivo bar chart axis labels overlapping
- What is the fastest way to get SVG element given a position (x,y)?
- d3 - Brush/Panning Zoom - disable panning on upper x-axis
- Cannot read property "getPropertyValue" of null in xChart
- d3.js legend: horizontal spacing between groups
- D3, Google Maps, selecting d3 elements
- Understanding the call method in D3
- D3 ordinal scale, left and right margins for tickvalues
- Using Googlemaps HeatmapLayer with in D3
- d3 Zoomable Sunburst with tooltip adjusting the % as it transitions?
- How to append a local SVG image with D3.JS
- Setting X-axis label in d3.js
- How can I render a d3 chart, export it as an image, then load the next data set, plot the next chart and export again
- d3js tool tip size/width change
- D3 - Appending SVG based on JSON Data
- What is the meaning of attr("d", path)?
- Javascript not working when Alert is removed
- Javascript closure and d3
- How to make d3 js tree view vertically bottom to up