Jump to content

I found an old post in FocalPoint that mentions to use this...


Todd Van Valkenburg

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...