Focal Point
[Closed] Graph chart in Millions

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8497055586

February 16, 2017, 12:23 PM
v_ani
[Closed] Graph chart in Millions
Hello,

The user wants to see the pie in Millions. Currently the chart is showing as number. I appreciate your help. Thank you.

GRAPH FILE GRAPHDATA
-* Created by Info Assist for Graph
COMPUTE BYPD2/P17 = (&VALUE /Target)*13;
BY &BYNAME
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET ARGRAPHENGIN JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH PIE
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT

setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setPieFeelerTextDisplay(0);
setPieRingSize (40);
setDisplay ( getPieRingLabel(), true);
setFontName(getPieRingLabel(),"CALIBRI");
setFontSizeInPoints(getPieRingLabel(),17);
setFillColor(getSeries(0), new Color(57,96,142));
setFillColor(getSeries(1), new Color(144,58,56));
setFillColor(getSeries(2), new Color(116,140,65));
setFillColor(getSeries(3), new Color(95,73,121));
setFillColor(getSeries(4), new Color(54,129,149));
setFillColor(getSeries(5), new Color(186,112,50));
setFillColor(getSeries(6), new Color(69,114,167));
setFillColor(getSeries(7), new Color(170,70,67));
setFillColor(getSeries(8), new Color(137,165,78));
setFillColor(getSeries(9), new Color(113,88,143));
setFillColor(getSeries(10), new Color(65,152,175));
setFillColor(getSeries(11), new Color(219,132,61));
setFillColor(getSeries(12), new Color(79,129,189));
setFillColor(getSeries(13), new Color(192,80,77));
setLegendDisplay(true);
setFontName(getLegendText(),"CALIBRI");
setFontSizeInPoints(getLegendText(),8);
setFrameDisplay(false);
*END

*GRAPH_JS
-*legend:{visible: true, color:'black', font: 'Bold 6pt CALIBRI'},
pieProperties: {
explodeClick: {enabled: true},
label: {visible: false},
-* totalLabel: {visible: true, color:'white', font: 'Bold 17pt CALIBRI'},
},
series: [
{series:0, showDataValues: false},
{series:1, showDataValues: false},
{series:2, showDataValues: false},
{series:3, showDataValues: false},
{series:4, showDataValues: false},
{series:5, showDataValues: false},
{series:6, showDataValues: false},
{series:7, showDataValues: false},
{series:8, showDataValues: false},
{series:9, showDataValues: false},
{series:10, showDataValues: false},
{series:11, showDataValues: false},
{series:12, showDataValues: false},
{series:13, showDataValues: false}
],

dataLabels: {visible: true, color:'white', font: 'Bold 9pt CALIBRI'}

*END

ENDSTYLE
END

This message has been edited. Last edited by: Kathleen Butler,


WebFOCUS 8
Windows, All Outputs
February 16, 2017, 02:01 PM
Squatch
I'm not sure this will help in your situation, but I highly recommend reading this thread:

[SOLVED]Abbreviating currency figure

I find it one of the more fascinating threads in this forum. The information might come in handy for you some day.


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs