Tableau Unable to create Stacked Area Chart - tableau-api

I am trying to create Stacked Area Chart in Tableau.
Workbook is on Public Tableau
Data is left joined via CUSIP, i.e
- excel sheet of CUSIP with interest rates
- excel sheet of CUSIP with date and index ratios
Workbook is filtered by CUSIP, and has a parameter called Principal (integer) which the user can input via adjusting slider, and has calculated field Inflation-Adjusted Principal which is
[Principal] * [Index Ratio]
Now, I am trying to create this type of Area Map from this webpage
But my chart ends up like this (refer tab Inflation-Adjusted Trend). It just adds up everything together.
And if I try to deliberately create an Area Chart, it looks like a bunch of color blocks (refer tab Inflation-Adjusted Trend 2) ... How to fix?

I did a quick check on the range of your [Index Ratio]s:
MAX([Index Ratio]) - MIN([Index Ratio])
For every CUSIP, it's 0.00007.
+-----------+------------------+------------------+
| Cusip | Max. Index Ratio | Min. Index Ratio |
+-----------+------------------+------------------+
| 912828H45 | 1.00760 | 1.00753 |
| 912828TE0 | 1.03779 | 1.03772 |
| 912828SA9 | 1.05443 | 1.05436 |
| 912828QV5 | 1.05888 | 1.05881 |
| 912828PP9 | 1.09097 | 1.09090 |
| 912828NM8 | 1.09431 | 1.09424 |
+-----------+------------------+------------------+
For any line, if your scale is too large, it's going to look like a straight line. Here's a line chart of a single CUSIP's [Inflation-Adjusted Principal]:
Here's that same line chart if I change the axis to not show zero:
The axis now spans from approximately the min to the max, so we can see the detail easily.
All of your [Index Ratio]s are pretty far apart from one another, considering the scale. Here's a shot of another line chart, but this time with a line per CUSIP:
If you're going to group by [CUSIP], your scale is going to be too large to see the detail in the lines in this type of view. This isn't a Tableau problem, it's just the nature of your data. Looks like you're going to need to find another creative way to visualize this, or choose a different aspect of the data to visualize that can tell the same story.

Related

How to put measures on X-axis and on Y-axis

i'm trying to create simple bar chart in Tableau.
Here example of my table :
country | emissions | population
ES | 3000 | 46M
FR | 6000 | 66M
I want to put value in Y-axis, population in X-axis and the country label associated in the top of each bar. But i cannot do that (Tableau don't allow measures in Y axis and X axis, only one measure is allow).
Here an example of result I have : enter image description here
The problem is that in the Y-axis, I cannot put measure so I convert emissions as dimension but i can't sort by crescent order. And I don't have solutions in order to put each country associated on the top of eache bar...
Here my data (not huge) : https://sendeyo.com/show/a73c58538d
Thanks for advance !
Maybe this is what you're looking for?
Or
Link to sample.

Show Dimension Headers on Y Axis instead of X Axis

So I have what seems like a pretty dumb question but I haven't been able to find an example online or figure out how to do it myself.
I want to create a visualization with the dimension headers going down the y axis and the values going across the x axis. I'm creating a cross tab/text table kind of visualization. It's just one name, an address, some demographic info. If you try to use each field as it's own column, the info gets pretty cramped. Using the transpose button doesn't work, and dropping the pills on to the row instead of column doesn't work. I've tried changing them from dimensions to attributes, but still no luck. Any tips would be very much appreciated.
Update:
Before:
ColA | ColB|
A | B |
After:
ColA | A
ColB | B
Generally if you want the dimension headers on Y and the values on X, you put the dimension pill on the rows shelf and the measure pill on the columns shelf. You might want to change a dimension to a measure and use a COUNT() or COUNTD() for example to see how many people come from a given city.
If you want to actually display several different measures next to each other (say the number of distinct cities and the number of distinct zip codes) you can drag the "Measure Names" pill on the rows and the "Measure Values" pill on the columns and add or remove the pills you need/don't need.
If this is not what you need, it would be good if you could post a screenshot of your dashboard (including the shelves and the dimensions pane). THat usually helps a lot to see where your problem is.

Create a bar chart with a different dimension for each bar - Tableau Public

I have a dataset in the following format:
Country | Dim1 | Dim2 | Dim3
Country A | 10 | 20 | 30
Country B | 20 | 40 | 10
I want to create a filtered bar chart, where each bar is a different dimension, and you can filter by country.
Thanks!
As Suggested above you can reshape your data.
Or
you can create a Bar chart with 3 bars. Drop the 3 dimensions to column or rows depending whether you want bar charts vertical or horizontal.
Then put the country filter in the filter pane and click show quick filter.
Now you should be able to filter the data based on the country all dimensions.
You might have an easier time if you reshape your data to have 3 fields (columns): Country, Dimension and Value.
Then you can place Country on the Filter shelf, Dimension on the Row shelf and Value on the Column shelf, assuming Value is a continuous measure.

GANTT in JasperReports / IReport

I´m using actual IReport Prof. 4.1.2.3
I am trying to built a GANTT Chart.
1)
How can i put values in, (or near by) the GANTT Bars like this ? :
______________________________________________...
| 0:23:47 | | 00:09:31 | | 02:33:11 |
---------------------------------------------------------------------------...
2)
How can i configure that only X Categories can be shown in the Categorie Axis ?
If i let work the diagramm Engine for me, i will have some small lines, but the bars has to be much thicker.
And that happens, if i only have 4 values in the Categories Axis.
3) regarding to 2):
Is there a function / parameter , that configures the bar Height from the GANTT ?
thx and Best regards
Christian
i hope this answer your question I'm using Gantt Chart in IReport,
you must input the value to build automatic the chart that required that is series expression, task expression(like task) start(date/time), end(date/time) the percentage you can ignore you can see example pic in my question

Fast, 2 Dimensional Table View

I'm implementing a view for displaying tabular information with 2 axis, but I'm starting to run into performance issues with rendering all the cells.
The view looks something like this:
+------------+-------------+------------+------------+------------+
| | 12.00am | 1.00am | 2.00am | 3.00am |
+------------+---------+---+---+--------+--------+---+-+---+------+
| Category 1 | x | x | x | x | x | |
+------------+---------+-------+-----+-----------+-----+---+------+
| Category 2 | | x | x |
+------------+---------+-------+----+--+--------------------------+
| Category 3 | | x | x | x |
+------------+--+---------------+-------+-------------------------+
Each x marks the center of a cell, or a piece of data in a category that's placed on the timeline. The cell will contain a single text label. When the cell is pressed, I need to know that it was pressed. The x axis will contain 24 markers, and there will be anywhere between 5 & 30 rows of data.
At the moment, I've implemented it using 3 main UIScrollViews; one across the top, one down the side, and then a large one for all the cells. When the large scrollview is scrolled, it updates the contentOffsets of the top and side scrollviews. This seems to work quite well, and it's quite intuitive.
The large scrollView has a number of row views, aligned with the headers in the sidebar on the left. The cells are then slotted into their respective row views, and shifted across the x axis to align relative to the time markers. The data cells do not necessarily line up precisely with the hourly time increments of the x axis.
I've encountered two problems:
It seems to be really slow. In some of these tables, there can be up to 2500 cells. This implies I might need some kind of view re-use strategy.
When two cells are next to each other there's a 2px border, but when it's a single cell on its' own there's a 1px border (The CALayer of each row and cell view has a 1px border drawn).
Some possible naïve solutions to the first problem:
Create one large view for the data cells, throw it into the main UIScrollView and draw everything using Quartz (possibly in a background thread).
Implement a view-reuse strategy and deal with having blank space when the user scrolls around quickly.
Does anyone have any high-level input on the best way to approach this problem? I've not dealt with large amounts of data/views before, so any input would be greatly appreciated.
I created something called DTGridView (available as part of DTKit), intended for this exact purpose (it was for an electronic programming guide for an app over here). So it allows differing widths of cells like you've shown in your diagram.
DTGridView uses one single UIScrollView and calculates the needed positions. It also implements cell reuse (in the same way that UITableView does). In fact if you know how to use a table view, then a DTGridView is pretty similar; It uses a dataSource to collect the data and views, and provides delegate methods (using a gridDelegate property) to notify of certain events.
DTKit contains an example project, which should help you understand how to set a grid up.
Give me a shout if you need any help. I understand the kit as a whole needs some better documenting. :)