As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Hi all, Is there a way to turn off the data value and disable tooltip in a graph?
For example, I do not want to display data values and tooltip when the value is 0.
GRAPH FILE CAR PRINT SALES BY COUNTRY ACROSS CAR ON GRAPH PCHOLD FORMAT JSCHART ON GRAPH SET VZERO OFF ON GRAPH SET HTMLENCODE ON ON GRAPH SET GRAPHDEFAULT OFF -*ON GRAPH SET GRWIDTH 1 -*above line of code refers to the extra slides on sides ON GRAPH SET UNITS PIXELS ON GRAPH SET HAXIS 405; ON GRAPH SET VAXIS 770; ON GRAPH SET GRMERGE ADVANCED ON GRAPH SET GRMULTIGRAPH 0 ON GRAPH SET GRLEGEND 0 ON GRAPH SET GRXAXIS 2 ON GRAPH SET LOOKGRAPH SPECTRAL ON GRAPH SET AUTOFIT ON ON GRAPH SET STYLE * *GRAPH_SCRIPT setDataTextDisplay(true); *GRAPH_JS series: [ {series: 'reset', "tooltip": 'TOOLTIP'} ] *END ENDSTYLE END -EXIT
Thanks,
WebFOCUS 8007This message has been edited. Last edited by: FP Mod Chuck,
GRAPH FILE CAR
PRINT
SALES
BY COUNTRY
ACROSS CAR
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET UNITS PIXELS
ON GRAPH SET HAXIS 405;
ON GRAPH SET VAXIS 770;
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET LOOKGRAPH SPECTRAL
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setDataTextDisplay(true);
*GRAPH_JS
dataLabels:
{visible: true,
displayMode: 'z',
position: 'center',
font: 'bold 8pt calibri',
numberFormat: '[>0]$#,# ;[=0] ;'
}
,series:
[ {"series": 'reset',
"tooltip": function(value, series, group)
{if (value==0) {return ''} else {return 'Tooltip'};
}
}
]
*END
ENDSTYLE
END
This message has been edited. Last edited by: dbeagan,
WebFOCUS 8.2.06
Posts: 210 | Location: Sterling Heights, Michigan | Registered: October 19, 2010