Get extreme X and Y values in angular highcharts (ng-highcharts) - javascript

I'm using ng-highcharts to draw a stock chart containing 3 series. I'm using a navigator to zoom. What I want to know is how can I get the extreme y values of each series when
drawing the graph and
when changing the graph using navigator.
I know to call event on x-axis when navigator event happens. But have no idea how to get the extreme values.
PS: Not using jQuery

Related

How to stack multiple VegaLite graphs on top of each other

I am trying to recreate a certain graphing tool for my company (I'm an intern getting my BS still). I want to use VegaLite graphs to recreate a graph that is essentially 3 unique graphs stacked directly on top of each other. each graph has its own separate Y axis but they all share the same X axis (time). Right now I have populated 2 graphs but they are side by side. It would be helpful to be pointed in the right direction to figure out how to format the graphs placement so that each graph is directly on top of the each other. like so:
Graph1
Graph2
Graph3
It would also be helpful to learn how to format the X/Y axis labels and hide/remove the X axis of Graph1 and Graph2.
Thank you!
You need a concat as described here. https://vega.github.io/vega-lite/docs/composition.html

How to get X-Axis value of google area chart without using chart.getSelection method

I need to find resolution of graph.for that I need first two values from X-axis values(which is time values) displayed on google chart but without any click events like chart.getSelection()graph example given here.
Also values keep changing when graph zoomed hence values are dynamic.Thankyou

adjust x-axis labels flot js

Is there any way to limit the number of x axis values that will be displayed given that there are many points to be displayed on the graph? Otherwise,the x-axis labels overlap if you don't zoom. For example, please see the fiddle I've created http://jsfiddle.net/ggggg/jx3q8uoy/10/
enter code here. You can zoom in and out with the mouse wheel. If you click on update I reload new data on the graph but since there are many points for the size of the graph the x-axis values get mixed with each other which is not good. One cannot make a difference which is which unless they zoom. Is there any way to limit the number of x-axis labels to be shown to just a few so that they don't get mixed in such a way when the point amount is big and if you zoom in then you will be able to see the specific x-axis labels? For example, please have a look at the vis.js graph here http://visjs.org/examples/graph2d/03_groups.html. See when you zoom in or zoom out with the mouse wheel the x-axis labels get rescaled and many of them get hidden and if you zoom in they are shown. I need something like for flot.js
Thanks

How to set the x axis dynamically in High Charts 2.3.5

I am trying to dynamically set the X axis rotation in Highcharts 2.3.5, but when the chart is redrawn the X axis remains unchanged.
By following the documentation I was able to set the rotation as the chart is constructed but I need to be able to set the rotation after that in response to other events on the page. Unfortunately I cannot update to the latest version of Highcharts in order to to this, and must remain using 2.3.5.
I am currently using this method:
chart.xAxis[0].options.labels.rotation = degrees;
chart.redraw();
This does seem to change the rotation value within the highcharts object but upon redrawing the chart nothing has actually changed.
Does anybody know of any way to do this without updating to the latest version?
Thanks in advance.
instead of that you can use chart.xAxis.update() method.
here is a link for its api documentation http://api.highcharts.com/highcharts#Axis.update
Hope it will help you.

Adjusting distance between points in RGraph (javascript)

I'm using RGraph's Line charts to plot some chronological data. It works fine, except that the distance between the successive points is always the same - irrespective of whether they are two hours or two months apart. I would like to customize it so that the distance represents the actual time interval between the points. Is this possible using the Line charts or any other charts in RGraph?
I contacted RGraph support with the above question, and they have suggested that I use Scatter charts instead:
You'd be better placed with Scatter chart. With this chart you can set
the maximum X value and the X axis is scaled (which you can show if
you wish).

Categories