How to Overlay Charts of Different Dates on TradingView? - charts

I want to create a chart similar to the one below. I want to overlay S&P500 data from 2008 with S&P500 data of 2022 to compare their charts and see how this current bear market correlates with the one from 2008. How do I do this in TradingView? I've tried for an hour and haven't figured it out.

Related

Is there any way to spliit a jasper report Gantt chart vertically?

I am creating a Gantt chart with jasper reports. But in this chart think it as a calendar where we can see some resource allocations. So the resource is a task and the allocations are sub tasks. That means there are multiple sub tasks for a task that are spread through months. If my data set contains data that spreads through about 6 months of a time period then the Gantt is very crowded and the tick labels are overlapping with each other. BTW the ticks should be shown in days. I want to split this report into several pages say 3 months for a page. The sub tasks doesn't have to start and end in one page. It's ok to start in one page and end them in another. So I basically want to print one report and split it to pages. I'm new to Jasper reports. It would be great help if someone can help me with a solution. The chart is getting its data through a sub data set and the data source is a Json.
Thanks

SAPUI5 timeseries_stacked_column chart displaying empty weeks even though there's no data

I'm creating the timeseries_stacked_column chart using SAPUI5 and the framework is plotting data for missing weeks even thought it's not fed to the chart. Please can anyone guide what's the best approach to avoid this.
Document link for chart property reference:
https://sapui5.hana.ondemand.com/docs/vizdocs/index.html#reference/chartProperty/Charts/Bar%20%20(15)/Stacked%20Column%20Chart%20for%20Date/Time%20Series/
Please see the screenshot below for the issue
Unfortunately the time series doesn't skip the intervals so the alternate solution to this was to use stacked_column chart with array of dimensions ["Year", "Week"] and plot accordingly.
Example: https://jsbin.com/nejefizuve/edit?html,output

Dynamically add Crystal Report Header(s) and chart(s) based on a count

I am working on a Crystal Report that is utilizing the Multiple Pie Chart graph type to show some data on change of location. I have run into the situation where a record has 17 locations. I cannot seem to make the chart auto-grow, even though set to only display 2 pies per row, it is showing all 17 pie charts on a single page. This is way too dense. I think the answer would be to count the data-rows involved and dynamically insert a Report Header and single Pie Chart for each, but have no idea how to accomplish this in Crystal. I have spent quite a bit of time looking for information on this and come up with absolutely nothing. I'm pretty much a CR newb. Haven't worked with it since school, years ago. A push in the right direction would be greatly appreciated!

What is the source for historical stock chart prices?

Yahoo does not seem to be using historical close prices nor are they using historical Adjusted close prices for their charts. For example, if you look at PCG on July 3, 1980, the data looks like this (close of 5.34):
Date,Open,High,Low,Close,Volume,Adj Close
1980-07-03,5.34,5.34,5.31,5.34,99200,0.04
However, on the interactive chart, Yahoo shows this price on July 3, 1980:
2.6695
On Google's chart, it shows 12.188 for that date. It is also missing some dates.
What is going on? I am beginning to doubt the integrity of stock charts.
Does anyone know what source data Yahoo (or Google) uses for their stock charts?
I recommend http://eoddata.com, very good source of data.

Crystal Reports: ? Possible to show Full Set in one chart, and subsets in separate charts?

In Crystal Reports, is there a way to get both full set charting and subset charting, in the report headers?
I'm working on a report from an erstwhile co-worker and I'm still trying to make things "better".
While I haven't found the solution to accruing time
( see Accruing over time (non-overlapping) - technique? )
I'll press on with how to use the resulting data once I retrieve it.
The report is a Global Availability report for network technologies, and part of the report is graphic:
Chart availability for different
network types for last "n" months'
time.
Charts availability for each region
(for each network type for "n"
months' time).
She (co-worker) had a global chart, but for each region, she did a separate sub-report containing just the chart for that region. The query isn't optimal, and using the sub-reports, the query is repeated each time.
If there a way to use a single data-set in one report for all five charts, forcing the four regional charts to display only that region's data?
Additional info:
The charts are all Bar charts, design is
y-axis: calculated availability
x-axis: Group by network type (Switches, Trunks, "Network)
sub group by month
Bad Example:
Let me see if I understand this. In your Report Header, you have 5 Subreports for the 4 regional graphs and the global graph. And you want to collapse this all into 1 Subreport if possible?
Yes, but you can't do it like in your image where United States & Europe are side-by-side. They would have to be 1 per row. Also, the datasource also has to be formatted correctly. To do this,
Make a new subreport. Group it by the Region.
In this subreport, make your regional graph in the Group Header section.
In this subreport, also make your global graph in the Report Header section.
Insert this subreport into your main report and you should be done.
Sometimes, the only way out of the fire is through it.
After lots of un-satisfactory refactoring, I spoke with the original (years ago) requestor and got some good information. I have yet to speak to the most recent requestor again (who didn't have any knowledge of the technical requirements the last several times).
Spoke w/ the guy who is tending a related db, and I get permission to add come functions, views, store procedures, etc. to THAT db... Within reason and after code/perf review -- something that isn't normally conducted, so I welcome it. I WILL have the ability to do the procedural stuff through... a procedure. Written as a stand-alone, I should be able to re-use it for any of the queries against future needs.
And... Yes, I am pretty much going to have to (read "get to") re-design, and hopefully get rid of most of the sub-reports. Yeay, me.
Thanks for coming along for the ride.