Data Studio Time Series cutting of X axis (too many data points) - google-data-studio

Working on a time series graph in data studio, and it seems whenever 3 years are chosen (2016-2019), the graph shifts left to show from the initial and only goes up to 2018.
Aggregation on the weekly level is showing fine, however, daily is causing this issue. Even playing around with x axis styling isn't sufficient.
I have 2 line series and a bar series.
Has anyone come across this issue?

Well, it looked like the bar series was taking too much space visually. After changing it to a line series, it is working fine.

Related

How to find a down trend in MQL4 from coding

I am writing an EA but I am beginner in MQL4. Please suggest me how could I identify a DOWN TREND or an UP TREND of moving average in my EA programmatically?
Please advise me as I have not so familiar with MQL4.
in the above image trend is not moving in up or down direction it moving in horizontal direction.
I want to make an EA using Heiken Ashi and MA. First in my code I want to identify weather its an up trend or down trend or a tread shown in the above image.
https://www.mql5.com/en/articles/136
on this link I found this:
2.1. Trend Detection Using Moving Average
Perhaps, the easiest way to detect a trend and its direction - using moving averages. One of
the first tools of technical analysis - moving average - is still used
in different variations and is the basis of most indicators. Traders
use both one moving average and a whole set of them, which sometimes
is called as "fan".
Let's formulate a simple rule for one moving average:
Trend goes up if at a given timeframe the closing price of bar is above moving average.
Trend goes down if at a given timeframe the closing price of bar is
below moving average.
If I identify trend like said above if price close above MA then its an up trend and if price close below MA then its a down trend that how could I identify that horizontal moving trend?
Please guide.

Using multiple dataset in the same chart with different values

I am using react-chartjs-2. I have a Line chart and x: time y: value. I have 2 different dataset. First dataset value is very as low as 0.00000145 and etc. The second dataset value is as high as millions. When i use this in the same chart, first dataset is at the bottom and looks like a single straight line as chart comparing 2 datasets. Time is same for both datasets. So what is the best way to see two different datasets self comparing?
I think, the best way is to make single chart, which will show correlation between two datasets - the division of first dataset's values by another's. I think, it may be representative

SSRS - Display only Top N Category Groups excluding duplicate groups at the end in Bar Chart

Consider the following table
I need to generate a bar chart with the Category Group = "Country". The chart should only display the top 3 Groups based on the count of records for a country. I have already applied a filter for the Category Group specifying the Top N Condition as 3 for Count(Country). The chart generated, applies the filter as expected based on count, but i need only 3 bars to be shown even if there are bars with duplicate values.
Below is the chart that I get.
Expected Result
Now I know that, i can create an additional column in my dataset with ranking values and then apply a filter on this column to get the expected result (i have tried this, and it works)
Is there a way to achieve the expected result without changing the underlying Dataset?
Note: The dataset shown above is a highly simplified version of my dataset. In reality i have a huge dataset with a lot of columns. The same dataset has been used for various charts (with groupings on different columns).
This was an interesting question as I've always just "solved" the tiebreaker in the dataset without much thought. However, I do see a fairly easy way to use the rnd() function to dissolve the ties as long as you don't care which of the tied countries is shown:
=(Count(Fields!Country.Value) * 1000) + (Rnd() * 100)
Which essentially just weights the count per country into the thousands and then tiebreaks with a random small value:
New York: 30XX
France: 20XX
China: 10XX
Italy: 10XX
Singapore: 10XX
If you wanted to actually solve the tiebreaker with an alphabetical preference, you could do something similar but incorporate the numeric value for the first letter of the country etc...
I just found out, I could use an x-axis minimum of 0 and an maximum of 10.5 together with an interval setting of 1.
So, I was able to achieve a top 10 limitation and the axis labels show the names - (it may be a side effect but when I changed the axis maximum to a whole number, the axis no longer shows the names but numbers).
I was not really happy with the other approaches. They seems much of an overkill to me for such a simple requirement like limiting the number of bars shown in a chart.

How to build a system to auto create paragraphs of text based on basic data

For example, given a basketball box score with the final score and the score at the end of each of the quarters, it could put together a summary of sorts:
Wildcats Win Close Game!
Despite a late charge by the Flying Eagles, the Wildcats hold on to win by 2.
The Wildcats started the game behind, though a surge through the middle of the
game put them ahead at the start of the fourth quarter. But then the Flying
Eagles put on the pressure late, though in the end, it wasn't enough.
I obviously don't want to build a huge if statement for every possible case, and I'm fine if the stories are identical for similar data sets. I don't have a language preference, mostly I'm curious about how to build something about this. References, keywords to search on, or places to learn this kinda thing would be greatly appreciated.

Using constants in SSRS's Error Bar Chart

I have a SSRS 2008 report with a Error Bar chart. It plots dates (x-axis) versus score (y-axis), with +10/-10 for the upper/lower error range. But in the dataset, I also have two sets averages (the US and the company's).
I would like to display these averages as a constant. It should be a horizontal line that runs through the chart.
In the chart, I have as category field: the date. As datafields: the score, the US average score, and the company's average score. Thus far I can plot all these points, but it seems that the averages' points are plotted simply as points, and are treated as points that should have upper/lower error ranges.
My question is, how can I get these averages to not display as points with ranges, but as a linear constant that is connected as a straight line? It seems as though with the Error Bar chart, it only wants to plot points with ranges.
(I have screenshots of what I have and what I want, but my work is blocking any image hosting sites. I will try to upload images later if this is still unclear.)
Thank-you in advance.
(Update)
Just to be clear, the two averages aren't calculated out, they exist as a column as part of the dataset retrieved. So for each row, these values are always the same.
It turns out that each series in the SSRS chart, you can change the chart type. In my case, I had to change it to Line graph to get the constant to show as a horizontal line.
So although the chart itself is a Error bar chart, each of the series can be changed to whatever bar chart needed.
(It was my co-worker that discovered this property-- so props to him)

Resources