Angular nvd3 shows gaps between bars of grouped chart - angular-nvd3

I have a scenario where i need to show top 5 values for each date (each date data may differ).
Issue scenario : For date 10th sep i have got response (top 5 -> Samsung Electronics, Lg, Apple, Amazon, Murata) now for the next day i.e 11th sep i have got response (top 5 -> Samsung electronics, Apple, Amazon, Murata, Other)....
Now if you notice then 2nd position of 10th sep data (Lg) is not present in 11th sep data.
In this case while plotting graph by default nvd3 keeps a blank space for "Lg" on 11th sep which must not be shown.
Screenshots are attached
How to resolve this issue?

Related

Selected data not visually being displayed in Qlikview?

Before importing this single sheet into Qlikview, I had 2 data sets, one from 2016 Olypmics and the other from 2020 in two different Excel files, I combined the sets of data into one so I could visualize this data in Qlikview.
I have two sets of Gold data since one is from 2016 and the other from the 2020 olympic results.
The problem I am having when opening the spread sheet in Qlikview, it shows the correct data but I want it to display both Gold figures instead of just the 2020 figures, I thought doing it as shown in the image would be sufficient for it to display both gold figures but it's just displaying the one set.
How can I get it to display both for each country specified? I will include my Qlikview setup since it might have relevance to my question.

iOS Charts Line Chart X Axis values repeated

I have multiple data points for each month:
And I get the x-axis of my graph repeated like Feb Feb Feb Mar Mar Mar Mar
Each data point is important because it reflects how long something took them on that day. So I cannot just sum all the values for a month or something like that.
How do I fix this?
I currently have the granularity set to 1 for the xAxis but I don't quite understand how granularity works.
Can you group your data, so that it is sum'd (or some other aggregate function) by month?
This would get your data to have one value per month, and therefore should solve the issue.
add this:
xAxis.granularityEnabled = true
as per document it says:
/// When true, axis labels are controlled by the granularity property.
/// When false, axis values could possibly be repeated.
/// This could happen if two adjacent axis values are rounded to same value.
/// If using granularity this could be avoided by having fewer axis values visible.

Hierarchy Date in Power BI

Hello Power BI :) 
My line chart is not showing hierarchy date as I want. the "Expand down level in the hierarchy" is not working as expected.
I want to see the X Axis by: Month, Quarter, Year as below: 
But all I can get is the below: 
I want to see lines instead of these dots as well.
How to fix that, what's wrong that im doing ? 
Thank you
If I guess right- You are getting single Dot as you have data for the year 2020 only. Now you have option of drill down on right top of your line chart as shown in the below image. You can go to Year, Quarter, Month, Day using those options.

Qlikview Combo Chart - Series not aligning with Axis

I have a combo chart that I want to track Actual spending versus Budget over a 3 year period. The Budget line items are bar charts, the Actuals are displayed by a symbol. There is only one data point for Actuals, 2020, Budget data is for 2020-2022. My problem is that Actuals are aligning with 2021, not 2020. Viewing the data as a straight table, I know my data calculations are correct. I am not suppressing zeros and the order of expressions (promote, demote) has no effect. Any ideas why this is happening and how to fix it?
Image explaining the issue

How to initialize iOS Charts to show data points at a specific x-axis range, e.g. last 6 months from today?

I have a question about iOS Charts by Daniel Cohen Gindi here. The figure below shows my full dataset drawn out as a scatter chart. With the x-axis labels going from January to December (let's say 2018), and then again January to December (2019).
The problem is that I don't want to show all data in range, but just in the past six-month range, July-December, as I want the scatter chart view to look like depicted below. (Note: assume the right-most data point is today.)
I want the user to be able to scroll right to see more data points in the past. I've tried this Swift code below but it would "lock" the x-axis to show July-December, and the user can't scroll right to see past data:
#IBOutlet weak var scatterChartView: ScatterChartView!
scatterChartView.xAxis.axisMinimum = 17.5 // + or - 0.5 for padding
scatterChartView.xAxis.axisMaximum = Double(months.count) - 0.5
And then I would try this code below but it would initially show data from the first 6 months, January-June of 2018. However, the user could scroll left to see the later months.
scatterChartView.setVisibleXRangeMaximum(6)
Close but not quite. Is there any way I could show data from the last 6 months upon loading the scatter chart, and have the user scroll right to see past data?
I found the answer!
scatterChartView.moveViewToX(17.5)
Per documentation, moveViewToX(float xValue) – Moves the left side (edge) of the current viewport to the specified x-value. The view port refers to "what is visible on the chart, aim of the view).
Upon chart loading, the viewport is initialized showing the most recent 6 months, and I can scroll right to see past data.