making charts using com.imsl.chart package
843785Nov 5 2008 — edited Nov 5 2008i cant find that particular jar from which i can import com.imsl.chart.* in my program....i need that jar ...from where i can download it.....pls help me
here is my code
package SwingChartsRND;
import com.imsl.chart.JFrameChart;
import com.imsl.chart.xml.ChartXML;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.dom.DOMResult;
import org.w3c.dom.Document;
public class SampleSalesTransform {
public static void main(String argv[]) throws Exception {
String filenameXSL = "Testxs.xml";
String filenameXML = "Testxm.xml";
// Create an XML parser factory
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
DocumentBuilder builder = factory.newDocumentBuilder();
// Parse the XSL file as an XML file
Document docXSL = builder.parse(filenameXSL);
DOMSource sourceXSL = new DOMSource(docXSL);
sourceXSL.setSystemId(filenameXSL);
// Create a transformation based on the XSL file
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(sourceXSL);
// Parse the input XML file
Document docXML = builder.parse(filenameXML);
DOMSource sourceXML = new DOMSource(docXML);
sourceXML.setSystemId(filenameXML);
// Transform the input XML file using the XSL transformer
DOMResult result = new DOMResult();
transformer.transform(sourceXML, result);
// Create a chart from the transformed XML
ChartXML chartXML = new ChartXML((Document)result.getNode());
new JFrameChart(chartXML.getChart()).show();
}
}
"