Jump to content
JChartFX Community

jorcama

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by jorcama

  1. The code is:

    
    

    function removeUglyChartFx() {
        jQuery('svg.jchartfx').each(function (index, value) {
            var removedChildren = new Array
            for (var i = 0; i this.childElementCount; i++) {
                if (this.childNodes.nodeName != 'svg') {
                    removedChildren.push(this.childNodes);
                }
            }
            for (var i = 0; i removedChildren.length; i++) {
                this.removeChild(removedChildren);
            }
            removeChildrenByNodeName('stop', this);
        });
        //Quita la marca de agua pero tb la leyenda.
        //jQuery('.LegendItem').empty(); }
        function removeChildrenByNodeName(nodeName, svgObject) {
            var removedChildren = new Array
            for (var i = 0; i svgObject.childElementCount; i++) {
                if (svgObject.childNodes.nodeName == nodeName) {
                    removedChildren.push(svgObject.childNodes);
                } else {
                    removeChildrenByNodeName(nodeName, svgObject.childNodes);
                }
            }
            for (var i = 0; i(removedChildren.length - 1); i++) {
                svgObject.removeChild(removedChildren);
            }
        }

  2. Hi,

    We are begining to develop with jChartFX in a demo product, we are using something similiar to this graph: http://www.jchartfx.com/demo.aspx#332c1395-7dc5-447d-8b92-6f93d47a2e06

    But our application dont use nor gradients nor borders,

    We would like to remove the main border container.

    Also all the linear gradients: The background grandient, and the bar gradients.

    I get my goal with this ugly code, bug if we want to use jChartFX in our final product, we need another solution.

    Thanks

×
×
  • Create New...