Replace default chart in Pine Script while using overlay=true - charts

Is it possible to replace/make invisible the default chart using Pine Script? As an example, the default chart always shows candles. I would like to write an indicator (using overlay=true) to erase (or make invisible) the default candle chart and replace it by just plotting the close values (e.g., plot(close)). This is just a simple example to illustrate what I want to do and where I'm getting stuck. Thanks in advance.

That's something I've needed in the past too, but unfortunately there's currently no Pine Script command available that allows for the manipulation of the visibility of the symbol on the chart.
It can be partially done, by making the body of the candle the same as the background color, but that still leaves the candle wicks and border intact.
barcolor(chart.bg_color)
Unfortunatly, there's no command to do the same for wickcolor and bordercolor.
Another approach could be to plot a new bar over the existing bars, with body, wicks and border all in the background color.
However, that will not work either - not even when you use explicit_plot_zorder=true - because the z-index of the chart symbol is always seems to be higher.
//#version=5
indicator("My script", explicit_plot_zorder=true, overlay=true)
plotcandle(open, high, low, close, "hideCandle", chart.bg_color, chart.bg_color, bordercolor=chart.bg_color)
So, in short, no solution for this yet.

Related

Why does AWS CloudWatch dashboard widget does not respect scales when drawing two lines?

I'm new to AWS and CloudWatch.
Here is a screenshot of a CloudWatch dashboard showing two parameters related to a Dynamo table.
As you can see in the pop-up the value of the sample for the orange timeseries is 2,252 while the value of the sample for the red timeseries is 7,000, yet the red chart is drawn under the orange chart. If you check the scale on the left, it seems the red series is the one that get drawn correctly, while the line of the orange one is somehow "inflated".
Can you please help me understand what is the reason behind this?
It looks like your mouse hover point data and the popup data are out of sync. Just a UI glitch.
The popup is showing 09:57 and probably on the chart at 09:57 those are the correct values.
The hover point you chose is a particular peak and is at what time? The last digit is cut off from the display but it's definitely not a 7! Looks like "09:50" maybe?
Minor UI glitch is my diagnosis.
Eventually I come up with this different set up, where one of the series has values mapped on the left Y-axis, while the other series has values mapped on the right Y-axis.
The main drawback is that the two series are not directly comparable, but at least the difference in value is more evident.

How to implement this stacked line chart in MPAndroidCharts or iOS-Charts

I have a number of charts/graphs created with the ported MPAndroidCharts project iOS-Charts by DanielGindi but I'm getting a request and I'm just not sure it's technically possible with things as they exist today.
I have used gradients but not sure if there's a way to kind of have it just be a 2 sided/colored gradient instead of a gradual fade. I have not created or seen an example of a dotted line coming through the existing chart but assuming zoom isn't a possibility I could hypothetically float a view over the top of it but I'd definitely prefer to have it in the native charts code/implementation.
The first graph is showing how much a user plans to have at retirement, the two shades of green represent different sources of money, the dotted line represents their spending from retirement to their estimated time of death.
The second graph is showing the gap between how much a user plans to have at retirement and how much we project they're missing compared to what they have and how that will look across the time from retirement to estimated death.
Thoughts?
It looks like a line chart with three lines and each with a solid fill.
In the top one, the dashed line graph has a white stroke and no fill, but in the bottom one, it has a black stroke and gray fill.
In the top one, the dashed line should be z-ordered to be on top, but in the bottom one, it should be z-ordered to be on the bottom.

Layering series in Oracle apex chart

I am trying to add two series to a scatter chart in oracle apex 20.1. One of these series is rendered as markers, the other one is rendered as a line. The problem I am having is that the line is always rendered behind the markers, which, due to the amount of data points I have in my first series, completely obscures the line.
I have tried giving the markers a lower opacity to make the line more visible which didn't help, as you can see below. I've also tried changing the series' order which didn't make a difference.
The question I have is: does apex have an option to have the line render on top of the markers?
Oracle apex badly layered chart
Edit: changed wording to be more clear

Draw a line and color it based on direction

Is it possible to draw a line similar to the example below and color it based on the previous value?
So to have the color red when the line is moving down and green when it goes up.
Can this be done with line type? Or does it need to be drawn with markLine or something else?
Any help is much appreciated!
https://echarts.apache.org/examples/en/editor.html?c=dynamic-data2
I don't think it is possible with the line chart, as the whole line uses the same color for all points. I suggest you use a scatter type chart where each point can have a different color. By setting symbol size to a small value and drawing values close together you can emulate visual line.
Here is an example based on the regression sample from echarts site:

How to prevent label truncation in a Cognos BI Pie Chart

I'm trying to create a pie chart in Cognos BI that shows complete labels. I can't figure out how to do this. I have included an image that shows how the current report truncates the labels and places three dots (...) at the end of each label. I have a couple questions:
Can what I want to do be accomplished?
Why does every label end with "..." and can they be eliminated?
Update: I'm running Cognos BI 10.1.1
I don't think you you can absolutely prevent it. But you can make the text longer. In your chart, select the label. In the properties, under general, you'll see Text Truncation. Click the ellipse by it. It's probably set to the default of automatic. Change it to manual, and you can put in whatever number of characters you want it to show.
Keep in mind that this can end up giving you some kind of funky looking charts. The hover will show the full value of the column if you need to be able to see it on demand.