Support Article
Unable to disable separator
SA-66999
Summary
When adding a Pie chart control with a DESELECTED separator checkbox in the UI, the thousand separator and the K symbol are added automatically.
The requirement is to display the exact number without the separator.
Error Messages
Not Applicable
Steps to Reproduce
- Add the Chart control and select Pie chart in the screen.
- In the Wedges tab, do not select the Separator checkbox.
- Run the report. When the count is greater than 1k, the thousand separator is added automatically and rounded off to the actual count.
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Perform either of the following local-changes:
- Save As the pyfusioncharts.theme.default.js text file in the user's application ruleset.
- Add formatNumberScale: "0 !important" below showBorder: 0.
- Create a new text file, myCustomChartsConfig.js, with the below code.
FusionCharts.register('theme', {
name: 'chartdefault',
theme: {
base: {
chart: {
paletteColors: '#2E9FCC, #F49C00, #9B55B7, #19AE5C, #94A4A5, #E84A34, #32C6AA, #32485E, #E77D03, #00A084, #24619D, #F1C400, #7E8B8C, #D45300, #BCC2C6, #1ECD6C',
baseFont: 'OpenSans',
showAboutMenuItem: 0,
showPrintMenuItem: 0,
manageResize: 1,
canvasBgAlpha: 0,
canvasBGColor: '#FFFFFF',
canvasBorderAlpha: 0,
unescapeLinks: 0,
defaultAnimation: 0,
showAlternateHGridColor: 0,
showAlternateVGridColor: 0,
showAxisLines: 1,
showPlotBorder: 0,
plotGradientColor: '',
use3dlighting: 0,
showShadow: 0,
legendBorderAlpha: 0,
legendShadow: 0,
legendBorderThickness: 0,
showBorder: 0,
formatNumberScale : "0 !important"
}
}
}
});
- Navigate to the Application skin > Charts.
- Uncheck the 'Inherit from parent' checkbox.
- Add the newly created JavaScript file ( myCustomChartsConfig) in the 'Charts theme file (JS)' field.
Published December 28, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.