Real Time trend direction - wonderware

Since Real Time trend plots right to left, is there a way to change the direction so it will plot left to right and when the pen gets to about 75% of the charts width, the chart shifts to the left 50% of the charts width and continues plotting?

The trend is always plotting left to right. But it looks different since you start with an empty plot. This would look different if you had connected it to Historian where you would start with a full plot.
The trend control has a property called "RefreshTimes" which continuously updates the end time to current time. If you set this property to 0, your trend will have static start and end times. The trend line(s) should still update, making it plot from left to right.
You can then control the start and end times through scripting.

Related

Coreplot Y axis cut off / no numbers?

I am having issues with my implementation of CorePlot. I have a subview in my UIViewController than contains the chart. Most of the data shows up fine but no increments / values are showing up on the y axis.
This is what I am seeing now:
If I shift the x axis start point by subtracting 10 (to better see the left half of the chart) I see this:
For the record, I do not have any values outside of the (positive x, positive y) quadrant on the chart and have logged out my data to verify this. Any input / advice would be appreciated, thank you!
http://www.raywenderlich.com/13271/how-to-draw-graphs-with-core-plot-part-2
This guy does a great job explaining that about halfway down... search for "You're Getting There!" to find exactly where he talks about the weird lines in the Y axis.
Hope this helps!
Set the leftPadding on the graph.plotAreaFrame to leave room for the axis labels at the left side of the graph.
The smeared y-axis is caused by too many tick marks and labels—they overlap and become illegible and negatively impact drawing performance. You need to adjust the labeling parameters to reduce the number of ticks and labels. By default, the axis draws major tick marks and labels one unit apart. The properties that need to be changed depend on the labeling policy you want to use.

how to center highcharts at the middle

I have two axis in highcharts and I dont specify the range for either. Please see graph.
For some reason, series one from 201 to 206 is taking up the whole chart while series 2 which is only -2k to 2k is being squeezed to the bottom, thereby extending the range all the way to 30k which is totally unnecessary. I think highcharts by nature wants to not have any overlap but I want that. What I'd like is for the right series to be centered, in fact I want the right axis to be centered at 0 always and can grow unrestricted in either direction. I can't hardcode any of these since I have no idea what the values could be. So Series 1 on the left is ok, but I want the value 0 for series 2 to always start at the middle of the chart. Any way to achieve that?
Try to set alignTicks as false.

How to increase time window for Jenkins TimeLine graph

In the Jenkins main page, I have a link called "Build History" that builds Timeline chart with the chronology of all builds. Link is:
http://myhost:8080/jenkins/view/All/builds
It looks like the following:
I use it a lot as I can see in one chart how many failures occurred.
My problem is that history starts at 2AM, I can guarantee I have a job execution every day at 1AM, and I can not see it here.
In the end I would like to have a least the last 24 hours each time, but I did not find any configuration menu for this. I don't even know if it's from a plugin I installed or native in Jenkins.
Does anyone know how to increase the time window ? (or give me an indication on where to search ...)
You are talking about the greyish window, not the table below, right?
This is a 2 part slider with a viewfinder at the top middle.
The lower (darker grey shade) part is in hours. It fits about 4.5 hours in the view.
The upper (middle grey shade) part is in days. It fits about 4.5 days in the view.
The top middle (lightest grey shade) part is showing on the upper (days) graph the relative position of the 4.5-hour window that you are currently viewing on the lower (hours) graph.
You can scroll the graphs either by clicking and dragging left/right, or by pointing the mouse there and using the mouse scroll. Since the lower graph is relative to the upper graph, the scrolling is linked too: you can scroll in large chunks using the upper graph, and scroll in smaller finer increments using the lower graph.
If you are having issues seeing anything on the lower graph, then look for little vertical bars on the upper graph (scroll if you need to). Position those within the lightest grey area in the middle (let's call it the "viewfinder"), and you will see a list of jobs in the lower part.
While I haven't seen a way to increase the default window from the default 4.5-hour view, you can easily scroll it left/right to view the past 24 hours.
You can scroll (Left/Right) the upper part in the below figure to see the history.

Coreplot: Axis Labels Fixed Location

I'm trying to customize a Coreplot graph in many ways I can and the next thing I would like to do is place the X Axis Labels (one that is custom as well) at the bottom of the graph, independent of the X axis' position (whether it's scrolled up or down).
To make it clear, it is similar to giving the labels an offset value of something like 50.0. But offset is not the property I'm looking for since it fixes the labels location relative to the X axis.
Any way this can be done? Or do I have to skip the axisLabels property and place and layer or something manually at the bottom of the graph?
EDIT: Alright, I managed to place an axis on the bottom with CPTConstraints. But it's not on the bottommost. If a plot point is on those levels, the plot line overlaps the labels. I tired padding of the graph but of course, it moves the whole graph, hence the issue persists.
Thanks in advance
Make a second x-axis. Have the first one draw the axis line, tick marks, etc., as normal but no labels. Label the second one and set all of the line style properties to nil so it doesn't draw any of the lines.
Turns out that aside from the graph, the plotAreaFrame property of the CPTGrpah also has paddings. If you give more paddings to plotAreaFrame than that of the graph, the plot will be drawn in a smaller frame and the rest of the graph area will be for you to add what you want (i.e., a second Axis).
Big thanks to #Eric, for trying to answer Every single CorePlot question as soon as possible.
CorePlot does have a lot of customisation than I thought.

Teechart with Candlestick for Delphi

I am using the TeeChart VCL Delphi module. I am trying to plot a candlestick chart. I have the following questions:
When I run the code it shows me the last date data on the right hand side. However, the y-axis is not automatically scaling at all. If I scroll backwards, it automatically adjust the y-axis scales. However, if I go far to the right which is the end, it does not auto-scale the y-axis anymore. What am I doing wrong?
The x-axis is the days of the week. However, I have no data for the weekend. It shows as empty space. How do I remove that?
How do you change the cursor so it shows the date/time for the X,Y you choose?
When I run the code it shows me the last date data on the right hand
side. However, the y-axis is not automatically scaling at all. If I
scroll backwards, it automatically adjust the y-axis scales. However,
if I go far to the right which is the end, it does not auto-scale the
y-axis anymore. What am I doing wrong?
What about setting the Y axis (left axis) to be automatic? For example:
Chart1.Axes.Left.Automatic:=True;
A more drastic solution would be also forcing the chart to repaint after adding each point.
Series1.Add(value);
Chart1.Draw;
If any of that helps please send us a simple example project we can run "as-is" to reproduce the problem here. You can attach your files here.
The x-axis is the days of the week. However, I have no data for the
weekend. It shows as empty space. How do I remove that?
You should do as in the All Features\Welcome!\Chart Styles\Financial\Candle (OHLC)\Axis Labels no Weekends example in the new features demo. This demo is included with registered and evaluation versions. Otherwise you can download it here.
How do you change the cursor so it shows the date/time for the X,Y you
choose?
There are two examples in the demo that can help you on this:
All Features\Welcome!\Tools\Annotation\Annotation Callout
All Features\Welcome!\Tools\Cursor\Synchronizing Two

Resources