Jump to content
JChartFX Community

pperich

Members
  • Content Count

    7
  • Joined

  • Last visited

Everything posted by pperich

  1. to export the image I have to avoid loading the css file and set the colors and styles thru the API. Is important NOT LOADING the CSS file.
  2. Thanks JuanC. I've have noticed that I should not include the CSS and I am setting all the colors thru a API because i am exporting it to an image and when I use the CSS, the exported image appears like a black rectangle. thanks, Pablo
  3. Hi. I'm posting the full code of a working example of converting a chart svg to an image. Note that you have to modify the path to the jChartFX library in order to make it work. <html> <head> <script type="text/javascript" src="/js/libs/jchartfx.7.1.4889/js/jchartfx.system.js"></script> <script type="text/javascript" src="/js/libs/jchartfx.7.1.4889/js/jchartfx.coreBasic.js"></script> <script type="text/javascript" src="/js/libs/jchartfx.7.1.4889/js/jchartfx.animation.js"></script>
  4. Hello, please could somebody help me in how to set the color of an Axis section thru the API. Thanks! Pablo
  5. The only problem with my code is that the texts appears in a wrong position. Please, can anybody help me with that?
  6. Hi Luis. after including the canvg library, this is my code: var svgH = this.jChart.S.parentNode.innerHTML; svgH = svgH.slice(svgH.indexOf('<svg')); if ( ( p = svgH.indexOf('<div') ) > 0) svgH = svgH.slice(0,p); svgH = svgH.replace(/sfxid=/g, ' sfxid='); svgH = svgH.replace(/sfxtitle=/g, ' sfxtitle='); this.canvas = document.createElement('canvas');
  7. Hi JuanC. Just in case you are interested. I made a script to export a JchartFX chart object to an image. It is very simple using de canvg library. Pablo
×
×
  • Create New...