Specifies the text color.
value a java.awt.Color 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);
Specifies the text font, as a string with the following form: 'FontFamily-FontStyle-FontSize'.
value a java.awt.Font 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.setFont(java.awt.Font('Verdana', java.awt.Font.BOLD, 14)); titlespec.setLabel("X Title") titlespec.setTextSpec(textspec); graph.setXTitleSpec(titlespec); graph.addElement(elem);
Specifies how date or numeric data should be represented in string format for display.
format a java.text.Format 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",20000],["NY",30000]]; dataset = new DefaultDataSet(arr); graph = new EGraph(); var elem = new IntervalElement("State", "Quantity"); var qscale = new LinearScale("Quantity"); var aspec = new AxisSpec(); var tspec = new TextSpec(); tspec.setFormat(java.text.DecimalFormat("##,###.00")); aspec.setTextSpec(tspec); qscale.setAxisSpec(aspec); graph.setScale("Quantity", qscale); graph.addElement(elem);
Specifies the text rotation in degrees.
value a number of degrees
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",20000],["NY",30000]]; dataset = new DefaultDataSet(arr); graph = new EGraph(); var elem = new IntervalElement("State", "Quantity"); var qscale = new LinearScale("Quantity"); var aspec = new AxisSpec(); var tspec = new TextSpec(); tspec.setRotation(45); aspec.setTextSpec(tspec); qscale.setAxisSpec(aspec); graph.setScale("Quantity", qscale); graph.addElement(elem);
Copyright © 2024, InetSoft Technology Corp.