I am using angular nvd3 directives here to build a multi-line chart. The chart automatically scales the y-axis to the maximum and minimum values among all the series that are plotted. Can I change this to perhaps 1.5 times the minimum and maximum values instead? Or any other dynamic configuration of my choosing?
Dynamically scaling up y axis range in angular-nvd3 line chart
3.5k Views Asked by srthu At
1
There are 1 best solutions below
Related Questions in ANGULARJS
- Angular Show All When No Filter Is Supplied
- Using pagination on a table in AngularJS
- State with different subviews
- Getting and passing MVC Model data to AngularJS controller
- Implementing prerender.io middleware in sails.js
- Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
- AngularJS, Google App Engine and URLrewrite
- send data from table to another page into forms
- How to write tests for classes with inheritance
- angularJS sending OPTIONS instead of POST
- Receiving POST from external application in AngularJS
- Metaprogramming AngularJS Filters
- Reload List after Closing Modal
- Why is my angularjs site not completely crawlable?
- Why is separation of JavaScript and HTML a good practice?
Related Questions in D3.JS
- Change size of bubble in Scatter Plot for c3.js
- D3 Mouseenter vs Mouseover
- Svg containers not positioning properly
- Bar chart columns not grouping in D3/C3
- Drill down capabality in C3.js
- Changing data sources with zoomable d3 treemap
- Repeat an object with different input data
- d3.js Line Chart Custom x-axis
- D3 Pie Chart with only one part of JSON data
- Prevent click action when dragging a D3 Node
- selecting and using textPath elements in Chrome
- D3.js collapsable tree - visualise set number of levels
- access the array->object -> array values
- How to set a domain on an axis and have the axis intervals not constant or take up different amount of interval spaces using d3
- Detect which type of d3 scale I am working with
Related Questions in NVD3.JS
- Add a space between the axis and text with NVD3 charts
- How to override a function in NVD3 library?
- How can I set odoo graph vlaues in the y-axis
- Add a value from a json file in the tooltip with NVD3
- Angular nvd3 donut chart - how to add a static or dynamic title? -
- (D3.js) How to invert the X-axis? From 0...10 to 10...0
- Change axis label in real-time on NVD3 chart using angular
- Angular nvd3 MultiChart X Axis Calibration issue with dual Y Axis
- Display data on stacked bars of nvd3-multi-bar-chart
- make zoom using nvd3
- Embedding networkd3 simpleNetwork in slidify deck - no errors but plot doesn't render
- custom x axis tooltip for nvd3 scatter chart
- Interactive Guidelines of NVD3 Charts (Line chart) getting cut when in a 12 column grid (Bootstrap) i plot two charts
- Remove the Legend from nvd3 pie chart
- Passing JSON data url instead of data internally in nvd3-Angularjs?
Related Questions in ANGULARJS-NVD3-DIRECTIVES
- Angular nvd3 donut chart - how to add a static or dynamic title? -
- Display data on stacked bars of nvd3-multi-bar-chart
- make zoom using nvd3
- Passing JSON data url instead of data internally in nvd3-Angularjs?
- Dynamically scaling up y axis range in angular-nvd3 line chart
- `a.map is not a function` error when trying to make NVD3 chart
- axisLabelDistance attribute is not working when i use rotateLabels to rotate the ticks on x-axis with angular nvd3
- nvd3 directives graphs -- how do I adjust padding?
- Angular js nvd3 set margin for legends
- Lodash: convert array to angularjs nvd3 Multibarchart data
- Working with JSON and Angular NVD3
- Create x-axis labels using angular NVD3
- Angular nvd3 plot line barely visible
- Angular - nvd3 Append line
- Threshold line for nvd3 discrete bar chart
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
To dynamically change the Y-Axis based on data, one way would be to assign the
getMaxValue(*list*)result to a variable, if you have your data in a JSON array. For example:then you would need to use the
forceYfunction in nvd3, and assign the upper range tomaxValue, or whatever you want(1.5 in your case):This will change dynamically change the Y-Axis range based on the highest data value in the data set.
For reference, take a look at my plnkr with this implementation.