Dendrogram in Tableau - tableau-api

I need to create a dendrogram as in the image below:
I have a hierarchy of data which consists of Division->Category->Department->Class->SubClass and I need to show the relationship in the visualisation using dendrogram.
My Client is very keen in about the graph. So couldn't go ahead with the dendrogram which is created using node links and sankey.

Related

Labelling multi polygons with the same geometry

In my dataset i have some polygons overlapped each other and I want to display their value in the label. In qgis we can do this as follows.
first step
Second step
multi labeling results in qgis
I am looking for a solution in mapbox studio to be able to do this.
There are some options like Expressions in Mapbox studio style but all are for working with labelling using multiple columns. But i need to have labelling based on multi features that have overlapping.

Calculate areas of new features in merged layer in QGIS

I have merged four different layers into one new one in QGIS, but I want this layer to have different information then the old layers. I want all the buffered 'islands' to have a different ID and a calculated area. However, now in the attribute table I just see four features, one for each layer that I merged. Is there a way to update the attribute table to consist of new features (one for each 'island')?
This is what the layer looks like:
And this is what the attribute table now looks like:
And this is what I want (the 5th and 6th column especially):
You must create a feature for each monopart geometry, you can achieve this using the 25.1.18.46. Multipart to singleparts tool, and then use the field calculator to get the area, you can find here how to calculate area Calculating polygon areas in shapefile using QGIS.

Tableau and modified Sankey diagram

I have been trying to recreate a modified Sankey based on Adam's work with the American Whiskey Viz and Beatles Analysis Viz that are found here:
https://public.tableau.com/s/gallery/beatles-analysis
https://public.tableau.com/s/gallery/american-whiskey-wheel
I am trying to create the same effect on my own data set. I am not sure how Adam was able to line up the sankey portion with the bar chart perfectly. I have tried many different ID2 field configurations and varying metric fields in the Curve calculated field options with no success. I haven't been able to get them to line up exactly. I would also like my bases to start in different locations along the sankey and not all originating from the left.
I realize that the examples are working with much smaller data sets but believe that this should still be possible with my data. I have tried Business ID in my curve formula and wondering if I need to have a more generic metric in my model. Andy uses Song ID which is a number between 1 and 45. My IDs range from 3-3000. You can see in the workbook attached how I am setting up these fields to get the curve of the Sankey. Is it possible to get them to line up with the barchart at the top of Dashboard 2?
UPDATE 3/22/16:
I was able to get the lines much closer to their bars by modifying the Curve-LoyaltyID2 field. I loaded it to Public for easier viewing. Some lines are still not aligning directly to their corresponding bars though.
Tableau Public
Thanks for any ideas you have!

How can I create a filled map with custom polygons in Tableau given point data?

In one TDE, I have individual posts from a hyperlocal social network with lat/long data. In the other TDE, I have polygons for Chicago's community areas.
How can I shade those community areas according to the number of records that were posted within its boundaries?
I'd like to essentially look up the community area by lat/long since I don't have the community area data within the first TDE to perform a join. Is there some other way to generate these shaded polygons given the data I already have? Is there another mapping tool that could do this for less than hundreds of dollars, if Tableau is not the answer?
Here's my workbook on Tableau Public.
You could load both data sets into Postgres. Add the PostGIS extension, so you can do geospatial queries to map posts to polygons. The connect Tableau to Postgres to create your visualization. One step at a time.

Dynamic graphs from frames using Networkx

I partitioned a large dataset of tweets in time-based slices and I created 1 graph per each slice.
How can I create a dynamic graph using the slices as "frames"?
I can do it using Gephi, but it is a manual process.
Thanks!
Visualize dynamic graphs is a complex topic and there's of course not a silver bullet for that.
There are different techniques out there and each library offers a different solution for such problem.
Once of the most common techniques is to combine two visualization components to show the graph in a particular "time frame" and a filter bar to slice / aggregate / navigate in time.
The filter bar an have multiple declination but one of the common pattern is a Time bar (either with line or histogram).
Where I work we recently did a webinar about this topic and offered our solution to it. Here's the link with slides and video.
Disclaimer: to watch the video there's a form to fill. But the slides are publicly available.