I have stacked chart which has goal and target. I want them to show in a way that target reaches toward the goal. Also, if it exceed the goal, then i should know where the goal was.
`http://jsfiddle.net/7tx295dx/`
Related
I'm trying to limit resources consumed by MT4 and go to options to set max bars in chart to something smaller like 500. My custom indicator calculates values from a 10 and 20 EMA.
Now the indicator does not even want to attach to the chart!
Even if I increase the number I cannot get my CI to attach to the chart again.
Please can you let me know what the minimum number should be for max bars in chart and why a simple CI as set out above will not attach to the chart?
Lastly, could you please help me also by stating what the default value for max bars in chart normally is? I thought it is 999999 but cannot remember.
Thanks so much for your effort.
In order to use your resources efficiently, ask your indicator to compute only last bars, prev_calculated should be used and go only since that value to the end of the chart(to the current bar). You can also make your indicator sleeping if number of bars is same, and let it run only when new bar appears (rates_total>prev_calculated) if that can be accepted for your task
While using Delphi Seattle 10 and Steema TeeChart Pro VCL FMX 2016.18, I am looking to Highlight a Selection of a Line Graph (multiple series) in the way that Zooming allows / makes a square around a highlighted selection of a Line Graph to indicate which part of it to zoom into (as long as the onmousedown action is in progress).
The purpose of this would be to allow the selection to remain highlighted while the mouse is no longer being clicked, to potentially "Delete" the highlighted Data points. All I need this for is to obtain the (X0 Y0 X1 Y1) values to possibly obtain the CalcPosPoint(X) and remove all the points inside. The data is currently obtained through a Record Struct (Memory Mapped) file, and it will there for be used to set/check for a property "deleted" to indicate on the next redraw of the graph which rows to completely ignore and which to continue printing.
I hope to be able to do this (select from 1 chart), and have it simultaneously draw on multiple graphs. I have tried to look for an example of this feature through the use of TSelectorTool (FMXTee). One of the pages I found referring to such a tool is Interactive data point selection as well as Multiple selections with Selector Tool
And my second question has to do with TeeCharts directly. Where would I find fmx240.bpl as TeeChart_Pro_Firemonkey_Demo.exe requires this file in order to run? I did manage to copy vcl240.bpl from "Embarcadero\Studio\18.0\bin" and put it into "Embarcadero\Studio\17.0\bin"
[Edited]
I have managed to capture / create a sample code (MVCE) from which I can now select a portion and create a square around a particular sample of graph lines.
The control graph right now is the bottom graph (Chart5). If anyone is interested in seeing the code, I have put up a pastebin sample.
PasteBin Sample Code
And a TeeCharts.tar.gz is accessible to anyone who wishes to see a sample of the code, as well as the data sample.
filetolink.com Source Files
I no longer feel the need for mathematical equation to differentiate the top graphs from the bottom (because the bottom axes are automatic where as the top are defined). I intend to only use the space which is adherent to the visible space, and do not intend to extend in either direction (left or right). That means at this point the size of the graph does not matter, because once I over populate the charts above, the position in the bottom graph would become irrelevant, and therefor I do not intend to use the bottom chart.
The next step is to save the positions of the boxes so that they can reappear when the graph is shift from left (past data) to the right (live data). And then uses the buttons above to make the appropriate action to the graphs.
I would like to know what way would be the most sufficient way to record the positions of the rectangles, so when the chart is shifted (via the ScrollBar1), the rectangles are moving with the direction of the scrollbar. But I'm sure I can achieve that.
I think I have found a solution. The red squares are only prevalent for the visual aspect, they can be drawn on, I don't need to do anything special with each chart, as I already know what the X0..Y1 parameters are, they are known from the initial chart. The problem h/e has to do with the initial chart. As long as the screens are all full, I can zoom in correctly w/ alignment with on all the charts (ZoomRect/Rectf(X0..Y1))
But what kind of equation would it take to adjust the charts that are not in the same zoom / max / min when the Chart5.Axes.Bottom.Automatic = True?
From there I just simply have to disable the immediate zoom feature, and allow buttons to become functional, to decide what the next course of action would be.
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.
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.
So I'm trying to create a bar chart similar to this:
(source: instantshift.com)
Is there a nice way to do this in CorePlot? If not, should I just plot two bar plots? One of the data values and another with 100%? and try put them on top of each other?
Use two bar plots. Give one a base value of zero (0) and the other a base value of 100. Give them both the same tip value for the same index. That way they don't overlap but the ends of the bars butt up against each other.