Percentage on pie chart label with multiple measures Tableau - tableau-api

I have a pie chart with 2 measures Current and Target
I have created a pie chart using these measures and am showing the values on the pie chart.
It's quite straightforward to build a pie chart with this setup, but I can't figure how to get the percentage (of total pie) to display on the label. Analysis->Percentage of->etc. gives me 100%, because it's only computed on one measure.
enter image description here
Can you please advise on how this can be done.
Thank you!

Related

Create Stacked Area Combined with Line Chart in Tableau

I'm having trouble creating a chart that combines a line chart with a stacked area chart in Tableau Public. I can create the line chart in Tableau, but after that, I don't know how to proceed. Attached is the chart I created in Excel that I am trying to recreate in Tableau.
Line + Stacked Area Chart
Thanks.
Make your chart a duel axis chart - to do this you must have at least 2 measures on your shelf - click on the right most measure a select 'Duel axis'. Once you've done this, you'll see that each measure has it's own tab on the Marks shelf, which means you can set different mark types on each - for example one measure can be a bar chart and the second can be a line graph.
Hope that helps,
Ben

Tableau Gantt Waterfall Charts Bridge charts

I built a gantt waterfall chart in tableau to represent sales difference over time. I want to add columns in the beginning and end, to show the total sales before and after the sales difference occurs.
http://image.slidesharecdn.com/howtocreateatableauwaterfallchart-120307010026-phpapp02/95/how-to-create-a-tableau-waterfall-chart-9-638.jpg?cb=1376818931
You could do a dual axis to get this, with the ending total value on the second axis... *might need an LOD calc to exclude the slicing dimension for the bar on the one axis.
Or, you could create two sheets and align them side by side on a dashboard to do this.

Merging 3 bar charts into one stacked bar chart in Tableau

I am struggling to create stacked bar chart out of 3 separate bar charts in Tableau.
They suppose to look like this:
However, closest I've got is this in tableau
With other charts it's kinda easier with just dragging the values from rows into the y-axis and voala - stacked bar chart. Over here they just disappear, as I've removed them.
Hope anyone can shed light to my darkness with Tableau.
You were close with your second Tableau screen shot.
From that configuration, move Measure Names from the Columns shelf to the Color shelf. Then you will get a colored bar for each measure on the Measure Values shelf, instead of a column for each measure.

jfreechart pie chart fixed pie radius

I have dynamic pie set and if there are a lot of series then pie get small.
How to set fixed pie chart radius.
A PiePlot grows to fill the space available, so you'll need to give it room to grow. Some possible approaches:
Override getPreferredSize() and use a suitable layout, as shown here among other suggestions.
Display the legend items in an adjacent component, as shown here, leaving the chart alone to fill it's container.
Reposition the legend within the chart, as shown here for the default RectangleEdge.BOTTOM.

iReport Line and Bar in same chart

I'm using iReport to try to create a chart for bug tracking. I need a stacked bar chart for the different severities of the open bugs by day and a line showing the total number of bugs by day. It's easy enough to build a multi-axis chart but it always shows up with distinct ranges on the Y axis. I want the Y axis to be the same range so that the total bugs line floats above the stacked open bugs bars. This is simple to do in Excel or Crystal Reports but I cannot see a way to do this in iReport. I need to be able to either merge Y axis in a multi-axis report or be able to change the series type of one of the series from stacked bar to line. Any tips/reading materials would be greatly appreciated.
It would be nice if it were more automated, but you can use a solution like this pretty easily:
Instead of calculating the Range Axis height automatically, create your own variable to decide an appropriate value for the maximum value. Then you can set the Range Axis Max Value to the same thing for both charts.