How to show segment values
You may have a requirement where you need to show the individual values of each segment in a stacked bar instead of the totals. The CDL parameter StackLabel offers control over the display of the segment bar values and the value in the active label hover popups for stacked bar charts. Options allow for either […]
- Author:
- Visual Mining
- Date:
- July 1, 2014
- Category:
- Design Approaches, NetCharts Designer, NetCharts Performance Dashboards, NetCharts Pro
You may have a requirement where you need to show the individual values of each segment in a stacked bar instead of the totals.
The CDL parameter StackLabel offers control over the display of the segment bar values and the value in the active label hover popups for stacked bar charts. Options allow for either the aggregate value of the stack or the individual stack segment value to be presented in the label.
Ex.
StackLabel = type;
The following types are supported:
- NetCharts Designer – The StackLabel is controlled via the Bar Sets Type menu using the Stack vs. Stack (Aggregate Labels) options, and it will not be necessary to go to the Source tab.
In the special case of Pareto charts, it will be necessary to go to the Source tab since the StackLabel is not accessible via the GUI. The default stack label for Pareto charts is TOTAL.
Here is how you can manually apply the CDL parameter to the Pareto chart template:
-
Double-click the CDX template to open the NetCharts Designer Chart Editor.
-
Along the bottom of the editor are four (4) tabs, Presentation, Data Source Binding, Variable Binding and Source.
-
Select the Source tab to view the CDL source of the chart template.
-
Scroll to the bottom of the template and add in
StackLabel = ITEM;
- Save the template (File -> Save).
-
-
NetCharts Pro – The CDL parameter StackLabel will need to be manually added into the CDL template or java code:
-
In the CDL used to generate the initial chart, add in:
StackLabel = ITEM;
-
or via the API method after the chart instance has been created:
chart.setStackType(NFBarchart.ITEM);
This will instruct the popups to show the bar segment value and not the cumulative value.
-
- NetCharts Performance Dashboards 2.5 – This CDL parameter is not presented as a GUI control in the Visualizations Options. Here is how you can manually apply the CDL parameter to the KPI:
-
Click on the Customize pencil icon to the right of the Visualization dropdown. This will open a Visualizations Options window.
-
With Visualization Options window open, click on the Advanced tab.
-
Paste in the StackLabel param into the CDL text box:
StackLabel = ITEM;
Note: This parameter is applicable only to Bar, 3D Bar, Pareto, Stock and Combo charts and should not be used for other chart types. -
If you have any questions, feel free to contact us at support@visualmining.com!
Comments are closed.