How to auto adjust Y axis plot lines in live high chart - highcharts

How to auto adjust plot lines in live plot
for example:Plot line i set to value:1.25 and random data are coming between 1-2.plot line will be visible.this works fine.suppose random data coming in the range 100-200,plot line will become hidden. i want to adjust plot lines irrespective of random data we generate.plot lines always visible.

set the max plot line value to any fixed number plots the plot line.
from then onwards the plot line will be visible. if the value of plot lines is very small compared to the scale then it may be tough. in this case go for a logarithmic scale. That will help.
yAxis:{
type: 'logarithmic'
}
updated your fiddle at http://jsfiddle.net/z6QXW/12/
hope this will help you

Related

How to view a fixed number of points on timechart of achartengine?

For LineChart I used
XYMultipleSeriesRenderer mRenderer=new XYMultipleSeriesRenderer();
mRenderer.setXAxisMin(0);
mRenderer.setXAxisMax(30);
When I use the same for TimeChart, my graph disappears, only the layout is visible. Is there any other way I can display a fixed number or points on my graph?
This is because the X axis range for a time chart is much wider, given by the values returned from the getTime() method in Date.

coreplot Xaxis start value iOS 7

I am developing an Area chart like the following and facing the following issue.
curve shape is not looking proper, i need a smooth curve.
X-axis values are Dynamic, it May start with 40 or May be 60 or
any other value.how to calculate that ?
Any Help will be greatly Appreciated.
To make the line smoother, either give it more data points or make a curved plot.
plot.interpolation = CPTScatterPlotInterpolationCurved;
If you know the range of data values, just set the xRange directly. Remember to set the location to the min value and the length to (max - min). You can also have the graph scale the plot space for you.
[plotSpace scaleToFitPlots:[graph allPlots]];

Spacing between plot border and start of data plotting in highcharts

The problem starts with the fact i have a very small area to plot a chart and i need to have markers on it as well. Now because of the small area, the markers are getting cut off and they are a key piece of information. So is there any way by which i can add some spacing between the border of the plot and the actual start of the data plot itself ?
Heres a running example: https://dl.dropboxusercontent.com/u/138190/charts/index.html
Set minPadding and maxPadding for xAxis. This will work as long, as yod don't have scrolling/panning options enabled.

IOS Core-Plot: How to get visible range of X and Y axis

In Core-Plot I want to plot only the visible area of the plot. For this I need the visible range of the plot after Zoom-In and Zoom-Out.
Any Idea how to get visible range of X-Axis?
You can use a plot space delegate to find out when the plot ranges change. Each delegate method receives a reference to the plot space as one of its parameters. You can read the xRange and yRange to find out what the new ranges are.
You can get visible range of X-Axis using code like this:
space.graph.axisSet.xAxis.visibleAxisRange

Draw a vertical line in Core Plot?

I have an iPhone project that displays some data of the past 24h in Core Plot. x axis shows the time, y axis the data value.
Now I want to highlight a day change by drawing a vertical line at midnight. How can this be done?
Add a scatter plot to your graph to draw the vertical line. Just give it two data points—one for each end of the line.

Resources