Specifies whether the legend title is visible.
boolean true: show title false: hide title
importPackage(inetsoft.graph) importPackage(inetsoft.graph.data) importPackage(inetsoft.graph.element) importPackage(inetsoft.graph.aesthetic) importPackage(inetsoft.graph.scale) importPackage(inetsoft.graph.coord) importPackage(inetsoft.graph.guide.form) var arr = [["State", "Quantity"], ["NJ",200], ["NY",300]]; dataset = new DefaultDataSet(arr); graph = new EGraph(); var elem = new IntervalElement("State", "Quantity"); var frame = new CategoricalColorFrame(); frame.setField("State"); var spec = new LegendSpec(); spec.setTitleVisible(false); frame.setLegendSpec(spec); elem.setColorFrame(frame); graph.addElement(elem);
Specifies whether the legend is visible.
Boolean true: show legend false: hide legend
importPackage(inetsoft.graph) importPackage(inetsoft.graph.data) importPackage(inetsoft.graph.element) importPackage(inetsoft.graph.aesthetic) importPackage(inetsoft.graph.scale) importPackage(inetsoft.graph.coord) importPackage(inetsoft.graph.guide.form) var arr = [["State", "Quantity"], ["NJ",200], ["NY",300]]; dataset = new DefaultDataSet(arr); graph = new EGraph(); var elem = new IntervalElement("State", "Quantity"); var frame = new CategoricalColorFrame(); frame.setField("State"); var spec = new LegendSpec(); spec.setVisible(false); frame.setLegendSpec(spec); elem.setColorFrame(frame); graph.addElement(elem);
Specifies the title text.
value a String containing the label
importPackage(inetsoft.graph) importPackage(inetsoft.graph.data) importPackage(inetsoft.graph.element) importPackage(inetsoft.graph.aesthetic) importPackage(inetsoft.graph.scale) importPackage(inetsoft.graph.coord) importPackage(inetsoft.graph.guide.form) var arr = [["State", "Quantity"], ["NJ", 200], ["NY", 300]]; dataset = new DefaultDataSet(arr); graph = new EGraph(); var elem = new IntervalElement("State", "Quantity"); var spec = new TitleSpec(); spec.setLabel("X Title") graph.setXTitleSpec(spec); graph.addElement(elem);
Specifies the title text attributes, such as color, font, format, etc.
spec a TextSpec object
importPackage(inetsoft.graph) importPackage(inetsoft.graph.data) importPackage(inetsoft.graph.element) importPackage(inetsoft.graph.aesthetic) importPackage(inetsoft.graph.scale) importPackage(inetsoft.graph.coord) importPackage(inetsoft.graph.guide.form) var arr = [["State", "Quantity"], ["NJ", 200], ["NY", 300]]; dataset = new DefaultDataSet(arr); graph = new EGraph(); var elem = new IntervalElement("State", "Quantity"); var titlespec = new TitleSpec(); var textspec = new TextSpec(); textspec.setColor(java.awt.Color(0xff0000)); titlespec.setLabel("X Title") titlespec.setTextSpec(textspec); graph.setXTitleSpec(titlespec); graph.addElement(elem);
Copyright © 2024, InetSoft Technology Corp.