Jump to content
Software FX Community

shobhit

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by shobhit

  1. or a quick fix could be : Is there a possibility for me to retrieve back the inputxml which was loaded into the chartServer object at some later stage. Then having that xml as string or as dom object, i can further do DOM parsing. -Shobhit
  2. HI, I am trying to pass on some additional information to the charts and i want it to be passed along with the XML as custom tags to it so that i can later on retrieve it for specific purpose. Is there a way using chartFX api calls i can read in those custom tags, like the way we do in SAX parsing. eg of my input xml: <?xml version="1.0"?><CHARTFX> <REPORTTYPES>charts,grids</REPORTTYPES> <COLUMNS> <COLUMN NAME="c0" TYPE="String" DESCRIPTION="abc" /> <COLUMN NAME="c1" TYPE="Double" DESCRIPTION="xyz" /> <COLUMN NAME="c2" TYPE="Double" DESCRIPTION="Count" /> </COLUMNS> <ROW c0="a" c2="10.0"></ROW> <ROW c0="b" c2="17.0"></ROW> <ROW c0="c" c1="107727.0" c2="389.0"></ROW> <ROW c0="d" c1="-13481.0" c2="489.0"></ROW> <ROW c0="e" c1="61012.0" c2="501.0"></ROW> <ROW c0="f" c1="107264.0" c2="981.0"></ROW> <ROW c0="g" c1="-5998.0" c2="95.0"></ROW></CHARTFX> here in this case i want to read the value provided in custom tags named "REPORTTYPES" Thanx, Shobhit
  3. Yes Frank. That is the default thing which is happening currently. But omitting the null values would not allow the chart fx to plot any thing on the chart (skip the data point) . But this is NOT what I want. I know by design Chartfx is build to behave in that way, but is thier an alternate aproach I can take to some how pass some place holder in the xml which states that the data point is "null" and do the desired behaviour customized by user?? Thanks, Shobhit
  4. Hi all, I have read few post earlier before posting this. I have one query which was not answered yet. I am using ChartFX 7 server for java installation on tomcat. I want to show a line chart which is getting its data source from xml file which is composed in chartfx specific format. Question: If in my chartfx xml i have null values, how do i make chartfx aware of it and handle it appropriately? I just want a single API call to handle this situation instead of iterating through my data points and setting some different property for the missing value. Behavior Desired: I want the chart fx to show the null value, plot it on the graph differently from the lines so the user is intimated of a missing value. R&D Done: I tried chartCurve.getData().setInterpolateHidden(false); without success. Example of input XML: <?xml version="1.0"?> <CHARTFX> <COLUMNS> <COLUMN NAME="c0" TYPE="String" DESCRIPTION="Product"/> <COLUMN NAME="c2_c1_0" TYPE="Double" DESCRIPTION="ABC PRODUCT"/> <COLUMN NAME="c2_c1_1" TYPE="Double" DESCRIPTION="KLM PRODUCT"/> <COLUMN NAME="c2_c1_2" TYPE="Double" DESCRIPTION="XYZ PRODUCT"/></COLUMNS> <ROW c0="PRODUCT NAME" c2_c1_0="4692.5" c2_c1_1="null" c2_c1_2="4118.8"></ROW></CHARTFX>
×
×
  • Create New...