Removing title box from jchartfx chart using jquery

344 Views Asked by At

I am currently using jchartfx to render some charts, my problem is I cannot find any way to remove the very large title created for each graph.

$("#sales").chart({
        axisY : {
            min : 0,
            max : salesMax,
        },
        dataValues : items,
            titles : [ {
                        text : ""
            } ]
});

If I leave the string empty as in the example above, I get a default text instead. I must do this jquery-wise.

3

There are 3 best solutions below

0
Undrium On BEST ANSWER

I ended up switching over from jquery to Javascript, this library is not supported enough for jquery.

3
creimers On

I went to the jchartfx demo site, analyzed the DOM and tried this in my browser's console:

$('.Title').hide();

No longer was I able to see any title.

0
JuanC On

You can remove the title box using the following in the jQuery options used to customize the chart

notitlebox: true,