Search the Community

Showing results for tags 'jsp'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Company Forums
    • Company News
  • Product Forums
    • FusionCharts XT
    • FusionWidgets XT
    • PowerCharts XT
    • FusionMaps XT
    • Collabion Charts for SharePoint
    • jQuery Plugin for FusionCharts
    • AngularJS plugin
    • ReactJS plugin
  • General Forums
    • FusionCharts Jobs and Consultation
    • FusionLounge

Found 8 results

  1. Hi, New to the forum. Loving Fusion charts. I am having some issues creating a stacked bar chart. I can create a normal bar chart and also the drill down version. Each row of my DB table has several columns. It is these columns I would like stacked. I cannot find any examples An example is: analyst attention delta theta lowAlpha highAlpha lowBeta highBeta lowGamma highGamma time Analyst 72 246836 119537 797902 677390 861178 944870 937669 636754 1.49E+12 Analyst 54 706781 641939 286041 605622 392724 433530 97563 253251 1.49E+12 Analyst 63 607845 131630 43136 709612 999633 110155 427353 918349 1.49E+12 Analyst 85 763426 249246 450154 726588 989483 740372 387877 440868 1.49E+12 Any help is appreciated. Thanks
  2. My web application is meant to be able to export server-side generated charts with a save button. However, upon trying to save any charts that have been displayed in the application, I am greeted with a 404 error page from JBoss. I'm running Linux Mint 17.3. The web application runs on top of Apache, JBoss 3.0.0-CR2, and Java SDK 1.7. It was built with Maven. I've attached a screenshot below. My question is this: why am I getting a 404 error, and where does the issue actually come from?
  3. Hi Team, I followed the below link to generate the 2D/3D chart using Datasource with JSP. While running the jsp, getting blank screen. http://docs.fusioncharts.com/charts/contents/?Code/J2EE/JSP_BasicExample.html#_ga=1.230867802.418366346.1430721233 I have removed the template tags for the rendering section. Can you please share the sample example code that works with the JDBC datasource. Initially tried with the Resful Webservices, but in one of the blog found that the Fusioncharts support is not available using services. Attached the JSP file & the error message while executing the JSP in the Tomcat Server. Best Regards, Ravi home-jsp.txt
  4. Hi Team. We have generated two reports using JSPs. (Main & Sub report). Both are JSP pages & report is generating perfectly. We want to link both the charts. When click on pie chart in the first chart, it should navigate to second chart. Both used the web services internally with JSP useBean tags. Attached the Main JSP here for your reference. How to link the second JSP in this chart. ------------------------------------------------------------------------------------------- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib uri="http://www.fusioncharts.com/jsp/core"prefix="fc"%> <%@page import="org.json.JSONObject"%> <% /* In this page the chart is finally displayed. */ %> <c:set var="folderPath" value="../Chart/FusionCharts/" /> <c:set var="jsPath" value="${folderPath}" scope="request" /> <script src="${jsPath}fusioncharts.js"></script> <jsp:useBean id="product" class="com.aasc.model.DataBean"> <c:set var="jsonArray" value="${product.jsonArray}"/> <c:set var="chartId" value="NormalCahrt"/> <c:set var="chartType" value="pie3d"/> <c:set var="caption" value="AA-Freight Audit Report"/> <c:set var="subCaption" value="UPS"/> <c:set var="paletteColors" value="#f2c500,#f45b00,#8e0000"/> <c:set var="width" value="500"/> <c:set var="height" value="300"/> <c:set var="exportEnabled" value="1"/> <c:set var="enableSmartLabels" value="0"/> <c:set var="showLegend" value="1"/> <c:set var="legendBorderAlpha" value="0"/> <c:set var="captionFontSize" value="20"/> <c:set var="subcaptionFontSize" value="16"/> <c:set var="useDataPlotColorForLabels" value="1"/> <% JSONObject chartObject = new JSONObject(); chartObject.put("caption", pageContext.getAttribute("caption")); chartObject.put("subcaption", pageContext.getAttribute("subCaption")); chartObject.put("paletteColors", pageContext.getAttribute("paletteColors")); chartObject.put("exportEnabled", pageContext.getAttribute("exportEnabled")); chartObject.put("showLegend", pageContext.getAttribute("showLegend")); chartObject.put("legendBorderAlpha", pageContext.getAttribute("legendBorderAlpha")); chartObject.put("enableSmartLabels", pageContext.getAttribute("enableSmartLabels")); chartObject.put("captionFontSize", pageContext.getAttribute("captionFontSize")); chartObject.put("subcaptionFontSize", pageContext.getAttribute("subcaptionFontSize")); chartObject.put("useDataPlotColorForLabels", pageContext.getAttribute("useDataPlotColorForLabels")); //put all together in final JSON Object JSONObject jsonObject = new JSONObject(); jsonObject.put("chart", chartObject); jsonObject.put("data", pageContext.getAttribute("jsonArray")); String json = jsonObject.toString(); pageContext.setAttribute("json", json); %> <fc:render chartId="${chartId }" swfFilename="${chartType}" width="${width}" height="${height}" debugMode="false" registerWithJS="false" jsonData="${json}" /> </jsp:useBean> <br /> <br /> ----------------------------------------------------------------- Best Regards, Varma
  5. Hi Team, I have a requirement where we want to renders the pie chart in the JSP page using Fusioncharts. The data should populate dynamically using the Restfiul webservices. The service response will come in JSON format & the database is Oracle. I have a working example, where able to show it from the json file in the html page, which is using the dummy data. Can you please share any working example with above requirement. Here am attaching the html page & json file that used in the server to render data. We have to fulfill the same requirement where the data should come from the service/database and populate dynamically. Regards, RaviauditReport_json.txt linkedParent.html
  6. Hi, before this Im working with flot.js with PHP and MYSQL. Currently im working on JSP with FusionCharts. I want to load 10 latest data(this is done in query) from MySQL and load it in FusionCharts Line Chart. Question is how to do this? Really blank right now. This is how I take data from MySQL in PHP : PHP <?php $dataGlucose = array(); $ctrGlucose = 0; while ($rowGlucose = mysql_fetch_array($resultGlucose, MYSQL_ASSOC)){ $dataGlucose[] = array( $ctrGlucose, $rowGlucose['glucose'] ); $ctrGlucose++; } ?> Javascript (Flot.js) $(function() { var d1 = <?php echo json_encode($dataSys); ?>; var d2 = <?php echo json_encode($dataDias); ?>; var stack = 0, bars = false, lines = true, steps = false; function plotWithOptions() { $.plot("#graphBlood", [ d1, d2], { series: { stack: stack, lines: { show: lines, fill: true, steps: steps }, bars: { show: bars, barWidth: 0.5 } }, colors: ["#4BB74C", "#840000"], }); } plotWithOptions(); }); Hope the pros here can help me. Thanks a lot
  7. Dear All, I have one JSP Page which include simple Heat Chart, I found one problem that if we use <base ..> html tag that chart not getting render properly. JSP Code: <!DOCTYPE html> <%@ page isThreadSafe="false"%> <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> <html> <head> <base href="<%=basePath%>" /> <title>Buzzor</title> <script type="text/javascript" src="js/fusioncharts/fusioncharts.js"></script> <script type="text/javascript"> FusionCharts.ready(function () { var salesHMChart = new FusionCharts({ type: 'heatmap', renderAt: 'chart-container', width: '550', height: '270', dataFormat: 'json', dataSource: { "chart": { "caption": "Top Smartphone Ratings", "subcaption": "By Features", "xAxisName":"Features", "yAxisName":"Model", "showplotborder": "1", "xAxisLabelsOnTop": "1", "plottooltext":"<div id='nameDiv' style='font-size: 12px; border-bottom: 1px dashed #666666; font-weight:bold; padding-bottom: 3px; margin-bottom: 5px; display: inline-block; color: #888888;' >$rowLabel :</div>{br}Rating : <b>$dataValue</b>{br}$columnLabel : <b>$tllabel1</b>{br}<b>$trLabel</b>", "theme" : "carbon" }, "rows": { "row": [ { "id": "SGS5", "label": "Samsung Galaxy S5" }, { "id": "HTC1M8", "label": "HTC One (M8)" }, { "id": "IPHONES5", "label": "Apple iPhone 5S" }, { "id": "LUMIA", "label": "Nokia Lumia 1520" } ] }, "columns": { "column": [ { "id": "processor", "label": "Processor" }, { "id": "screen", "label": "Screen Size" }, { "id": "price", "label": "Price" }, { "id": "backup", "label": "Battery Backup" } , { "id": "cam", "label": "Camera" } ] }, "dataset": [ { "data": [ { "rowid": "SGS5", "columnid": "processor", "value": "8.7", "tllabel1": "Quad Core 2.5 GHz", "trlabel": "OS : Android 4.4 Kitkat" }, { "rowid": "SGS5", "columnid": "screen", "value": "8.5", "tllabel1": "5.1 inch", "trlabel": "AMOLED screen" }, { "rowid": "SGS5", "columnid": "price", "value": "9.3", "tllabel1": "$600" }, { "rowid": "SGS5", "columnid": "backup", "value": "9.7", "tllabel1": "29 Hrs", "trlabel": "Battery : 2800 MAH" }, { "rowid": "SGS5", "columnid": "cam", "value": "8", "tllabel1": "16 MP", "trlabel": "Front Camera : 2.1 MP" }, { "rowid": "HTC1M8", "columnid": "processor", "value": "9.2", "tllabel1": "Quad Core 2.3 GHz", "trlabel": "OS : Android 4.4 Kitkat" }, { "rowid": "HTC1M8", "columnid": "screen", "value": "8.3", "tllabel1": "5 inch", "trlabel": "LCD screen" }, { "rowid": "HTC1M8", "columnid": "price", "value": "7.3", "tllabel1": "$600" }, { "rowid": "HTC1M8", "columnid": "backup", "value": "8.8", "tllabel1": "20 Hrs", "trlabel": "Battery : 2600 MAH" }, { "rowid": "HTC1M8", "columnid": "cam", "value": "8.7", "tllabel1": "4 MP", "trlabel": "Front Camera : 5 MP" }, { "rowid": "IPHONES5", "columnid": "processor", "value": "9.1", "tllabel1": "Dual Core", "trlabel": "OS : iOS 7" }, { "rowid": "IPHONES5", "columnid": "screen", "value": "8.6", "tllabel1": "4 inch", "trlabel": "Retina LCD screen" }, { "rowid": "IPHONES5", "columnid": "price", "value": "7.2", "tllabel1": "$649" }, { "rowid": "IPHONES5", "columnid": "backup", "value": "8.4", "tllabel1": "10 Hrs", "trlabel": "Battery : 1560 MAH" }, { "rowid": "IPHONES5", "columnid": "cam", "value": "9.5", "tllabel1": "8 MP", "trlabel": "Front Camera : 1.2 MP" }, { "rowid": "LUMIA", "columnid": "processor", "value": "8.8", "tllabel1": "Quad Core 2.2 GHz", "trlabel": "OS: Windows Phone 8" }, { "rowid": "LUMIA", "columnid": "screen", "value": "9.1", "tllabel1": "6 inch", "trlabel": "LCD screen" }, { "rowid": "LUMIA", "columnid": "price", "value": "9.7", "tllabel1": "$470" }, { "rowid": "LUMIA", "columnid": "backup", "value": "9.2", "tllabel1": "27 Hrs", "trlabel": "Battery : 3400 MAH" }, { "rowid": "LUMIA", "columnid": "cam", "value": "8.1", "tllabel1": "20MP", "trlabel": "Front Camera : 1.2 MP" } ] } ], "colorrange": { "gradient": "0", "minvalue": "0", "code": "E24B1A", "startlabel": "Poor", "endlabel": "Good", "color": [ { "code": "E24B1A", "minvalue": "1", "maxvalue": "5", "label": "Bad" }, { "code": "F6BC33", "minvalue": "5", "maxvalue": "8.5", "label": "Average" }, { "code": "6DA81E", "minvalue": "8.5", "maxvalue": "10", "label": "Good" } ] } } }); salesHMChart.render('chart-container'); }); </script> </head> <body> <div id='chart-container'>FusionCharts XT will load here!</div> </body> </html> Please guide me why its create a problem if i use base tag of html. if i remove base tag that its working fine. I need to know that it the alternative solution for resolving this problem. I have also attached sample output of chart Thanks in Advance
  8. Hi, We are working on RadarChart, dataset and cateogories are retrieved from JSON Data, We need to specify some datapoints to be highlighted. How this can be achived. Please help us immediately