OpenXML- Multi-level label for Category Axis - excel

I am trying to include Multi-level (two levels) labels for Category Axis while generating chart with OpenXML. The top level label should be right aligned and bottom labels should be centrally aligned.
I tried using "NoMultiLevelLabels" with the value "false" to be added in "CategoryAxis" instance.
I also tried using multiple "CategoryAxisData" series to be associated with "CategoryAxis" but nothing works. I can see only one level of labels.
A small example will definitely a welcome relief. I am using C# and OpenXML sdk.

Related

fusioncharts how to hide several data series by clicking one legend item?

i am using fusioncharts (3.16) to draw several group lines in a chart (msspline). i set main/primary lines visible in legend and secondary lines are set invisible in legend. now i want to hide all primary and secondary lines of a specific group by clicking the corresponding legend item.
i know there is a "legenditemclick" by which i can get all group members via jquery, but cannot set visiblity attribute to them.
also in fusioncharts forum there is a very old post with same requirement but i cannot apply it to the new js version!
can anyone help me please?

Total value on the x axis using Marimekko widget using IBM Cognos

I am working on a dashboard in Cognos. One of the diagrams in which is a marimekko diagram, as shown below:
Presently, the widget offers percentage for the entrire diagram. I would, however, like to know how to get the x- axis values of each stacked bar (48.9 thousand - the value of the stacked bar on the very left, 80.2 thousand etc) either below or above as shown in the diagram below? Using summary or KPI widget additoinally either below or at the top, does not solve the issue when the diagram becomes interactive and the width changes.
The sample data used for producing the marimekko figure is:
You can tune your Marimekko visualization by using a IBM Cognos custom visualization and follow this stackoverflow post on Marimekko with D3.js visualization.
The standard Marimekko viz from IBM does not support what you are asking for - data entry slot for sum per bar.

Change color of data label placed, using the 'best fit' option, outside a pie chart - Excel 2010

I am working with a pie chart whose data labels are added using the best fit property. Most of those labels are placed by Excel inside the pie, but some of them are placed outside.
Because of some series colors are so strong, the data labels had to be defined as white. Of course, the labels placed outside the pie wont be visible if I don't manually change their color (to black, for instance)
What I am trying to do is to conditionally change the label's color according to where Excel placed it (white inside the pie, black outside it), as in the following image:
I have been searching for a solution, but it seems that nobody had a similar problem.
Does anyone know if Excel allows this or does someone know a trick to bypass it?
There is a way to do this in Excel.
When you click on the chart, and go to Layout under Chart Tools.
Once there, go to Data Labels.
When you click on that, it will display a drop-down menu. At the bottom of the menu, click on More Data Label Options.
It will pull up a new window. On the sidebar of the new window, click on Number.
Then, under Category click on Custom.
In the textbox shown under Format Code, type in [Black][<0.05]0%;[White][>=0.05]0%
Click Add.
It should format the numbers outside the pie chart in your example black, and the numbers inside the pie white. If you had different data, you could format it the same, but you would have to change the number in the brackets after the color to the number one higher than number outside of the pie. It would be like this: [Black][<(number one higher than number outside of the pie)]0%;[White][>=(number one higher than number outside of the pie)]0%
Screenshot of Pie Chart Formatting
Source:
http://chandoo.org/wp/2009/01/29/colors-in-excel-chart-labels-trick/

How can I move the field name to the bottom of graph in Tableau?

I'm using Tableau 9.0.2 to generate graphs and I can't for the life of me figure out how to move (ideally drag, right?) the field name for my x-axis from the top to the bottom of the graph, by the units, where it should be.
I'm attaching a picture because it's probably the easiest way to make clear what I'm trying to do, given this is a question of positioning:
This Tableau graph has the field name "Iterations" at the top of the graph, not the bottom, where it should be. While this might not seem like a huge concern, it means that these graphs are not immediately exportable.
How can I move the label "Iterations" to the bottom of the graph, next to its axis?
The answer currently offered below allows for manual image modification within Tableau, which is unsatisfactory. It seems bizarre to me that the default, unchangeable behavior of Tableau goes against standard practice in graphing (labels next to labelled).
If the goal is just to get the headers and the axis label in the same place, one alternative would be to move the headers to the top of the chart (as opposed to moving the axis label to the bottom).
Go to Analysis/Table Layout/Advanced... and uncheck the option "Show innermost level at bottom of view when there is a vertical axis". This will move your Iterations headers to the top of the chart, and now everything will be in the same place.
If that's not an acceptable alternative for you, here's the only (kind of unfortunate) solution I can think of:
Place your worksheet in a dashboard.
Right click the axis label and select Hide Field Labels for Columns.
Create a text box with your desired axis label (in this case "Iterations") and place it below the chart. Your headers and your DIY, home-brewed, hacktastic axis label will now both be at the bottom.
Hide the columns axis label then enable / edit the caption within the bottom of the dashboard. Then center the value of the caption. Should look better.

Integrating charts in Excel

I was wondering if there is a way to integrate a bar chart and a line chart into "one single chart", where the bars are "on top of the line plot? See picture for a clearer view.
(Obviously the bar-chart is not supposed to be outside the actual plot...)
This is a bit of a hack, but you could create two charts with the chart area fill transparency turned to 100%. This allows charts to be placed on top of each other, but in a way that both can be seen. Turning off any elements in the chart that you don't want (for example, duplicate axis) would enhance the presentation.
Problem solved. It was actually just a matter of scaling data, and using two "line with markers" type charts. The lines in between each dot in the one showing the percentage, were then removed. Then, using a certain layout, a line connecting the two series could appear (as shown in pic).

Resources