Jump to content
We've recently updated our Privacy Statement, available here ×

akthar.itzme

Members
  • Posts

    27
  • Joined

  • Last visited

akthar.itzme's Achievements

Explorer

Explorer (4/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. My Javascript code is as follow : define(['jquery_hc','hchart'], function ($, Highcharts) { function getMonoChromeColors() { var colors = [],base = Highcharts.getOptions().colors[0],i; for (i = 0; i < 10; i += 1) {// Start out with a darkened base color (negative brighten), and end// up with a much brighter colorcolors.push(Highcharts.Color(base).brighten((i - 3) / 7).get());}return colors;} return function (instanceData) { /*** Drop-in compatibility fix for semi-transparent strokes and fills for old WebKit * browsers as well as Batik export servers. The fix splits rgba fill colors into * solid colors for fills, and a separate fill-opacity attribute.*/Highcharts.SVGElement.prototype.fillSetter = Highcharts.SVGElement.prototype.strokeSetter = function (value, key, element) { var colorObject; if (typeof value === 'string') { if (value.indexOf('rgba') === 0) { // Split it up colorObject = Highcharts.Color(value); element.setAttribute(key + '-opacity', colorObject.get('a')); element.setAttribute(key, colorObject.get('rgb')); } else { element.removeAttribute(key + '-opacity'); element.setAttribute(key, value); } } else { this.colorGradient(value, key, element); }}; var data = [{"name" : "apple", "y" : 200}, {"name" : "Orange", "y" : 100}]; var series0 = instanceData.series[0]; // I have used dummy data already So, not going to use series0 data. var config = { chart: { renderTo: instanceData.id, backgroundColor: null, borderWidth: 0, margin: [2, 0, 2, 0], type: 'pie', width: instanceData.width, height: instanceData.height, style: { overflow: 'visible' }, skipClone: true }, tooltip: { backgroundColor: null, borderWidth: 0, shadow: false, useHTML: true, hideDelay: 0, shared: true, padding: 0, pointFormat: '<b>{point.y} ({point.percentage:.1f}%)</b>' }, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: true, format: '<b>{point.name}</b>: {point.percentage:.1f} %', style: { color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black' } }, colors: getMonoChromeColors() } }, series: [{ name: 'Brands', data: data }] }; new Highcharts.Chart(config);};});
  2. Hi, Thanks for your answer. I checked my server log i am getting the following error: ERROR CVElementPhantomJSImageProvider,pool-15-thread-2:91 - Generating image for Custom Visualization element 1334138075 failed.net.sf.jasperreports.engine.JRRuntimeException: Error while executing the javascript file to generate the SVG image: External process did not end properly; exit value: 1; process output:--- Running highcharts.src.js from GitHub, branch/commit/tag "master" ---SCRIPT_SUCCESS Now after some times i get empty PDF reports. HTML Output is working great always. Kindly guide me in solving this. Urgent !!!
  3. Hi , I am facing problem with Custom Visualization Component while exporting it in pdf format. Html format is working fine but pdf/java is not working. I have checked the phantomjs path, It is set correctly and tested with command promp also. I have also changed phantomjs version from 2.0 to 1.9.2. Still the problem exist. Due to this issue i am not able to export my CVC reports. Kindly help regarding this. It is important. !!!
  4. Still the problem exist. Tried all said answers. Kindly help as soon as possible. Jasper guys help us.
  5. I am also recieving same error. Kindly anybody from jasper side help to resolve it. We are in critical !!! !!!! !!!
  6. Hi, I need to use Custom Visualization Component in jasper reports. I am having jasper report library in my application. Is it works with the Jasper Report Library or I need to add any extra libraries to my class path? Kindly help me as soon as possible!!! Its important for our development.
  7. I am not able to render custom visualization component report using visualize.js. But the same report is running fine in jasper server. Is there anything i need to do while rendering in our application? I have followed all steps as said in the following url to run the report in jasper server. http://community.jaspersoft.com/blog/step-step-procedure-run-existing-examples-d3-chart-samplesthat-comes-product-6x-jasper-design
  8. Hi, I am trying to pass value for the parameter of type java.sql.Timestamp through Rest service. If i check the jasper server log it throws error as "Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.sql.Timestamp" How to pass the value? I am using JSON string in PUT option.
  9. Hi, I have created report in jasper server which is based on domain and adhoc view. I need to add this report to report book created using jasper studio. How to add and run it? Pls some one help me in this as soon as possible.
  10. Its great bini. I got it at last. Thank you very much. I need to add another question to it. If you pls reply it. I need to create report book in jasper studio using the reports created from domain and adhoc view in the jasper server. Kindly help me, How to add the server reports to report book and run it?
×
×
  • Create New...