Todd Van Valkenburg Posted March 15, 2021 Share Posted March 15, 2021 I found an old post in FocalPoint that mentions to use this -SET &XTITLE = AUTO | &|#44; | MOBILE; CAR AS &XTITLE But I am not able to get this to work in a graph legend. When I try the example above, what I see is AUTO,MOBILE. Is there another workaround to get a comma to display in a column title Thanks Todd Link to comment Share on other sites More sharing options...
Warren Hinchliffe Posted March 16, 2021 Share Posted March 16, 2021 Can you post an example Do you have quotes around the title Link to comment Share on other sites More sharing options...
David Beagan Posted March 16, 2021 Share Posted March 16, 2021 Does this work for you GRAPH FILE ggsales SUM UNITS DOLLARS UNITS BY CATEGORY ON GRAPH PCHOLD FORMAT JSCHART ON GRAPH SET LOOKGRAPH BAR ON GRAPH SET STYLE * type=data, column=n1, bucket=x-axis,$ type=data, column=n2, bucket=y-axis,$ type=data, column=n3, bucket=y-axis,$ type=data, column=n4, bucket=y-axis,$ *GRAPH_JS_FINAL "legend": {"position": "right"}, "series": [ {"series": 0, "color": "aquamarine", "label": "New Series, Label"}, {"series": 1, "color": "burlywood"}, {"series": 2, "color": "coral"}] *END ENDSTYLE END Reference: Creating HTML5 Charts With WebFOCUS Language Release 8.2 Version 02, Page 417 Link to comment Share on other sites More sharing options...
Todd Van Valkenburg Posted March 16, 2021 Author Share Posted March 16, 2021 Perfect! Thank you! And this method also works with the tooltip to display commas when you hover over a slice. E.g. series: [ {series: 0, color: aquamarine, label: England, tooltip: England}, {series: 1, color: burlywood,label: France, tooltip: France}, {series: 2, color: coral,label: Not England, France, Japan, tooltip: Not England, France, Japan}, {series: 3, color: red,label: Japan, tooltip: Japan}] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now