Jump to content
JChartFX Community
  • 0

How do I disable tooltips?


moxyman
 Share

Question

 I'm sorry for the easy question here.. but how do I turn a charts tool tips off?

 


    var divHolder = document.getElementById('ChartDiv');
    var chart1 = new cfx.Chart();
    chart1.setGallery(cfx.Gallery.CurveArea);

    var fields = chart1.getDataSourceSettings().getFields();
    var field1 = new cfx.FieldMap();
    var field2 = new cfx.FieldMap();
    var field3 = new cfx.FieldMap();
    var field4 = new cfx.FieldMap();
    var field5 = new cfx.FieldMap();

    field1.setName("Date");
    field1.setUsage(cfx.FieldUsage.Label);
    fields.add(field1);

    field2.setName("Gary");
    field2.setUsage(cfx.FieldUsage.Value);
    fields.add(field2);

    field3.setName("edwin");
    field3.setDisplayName("Mr Edwin");
    field3.setUsage(cfx.FieldUsage.Value);
    fields.add(field3);

    field4.setName("matti");
    field4.setUsage(cfx.FieldUsage.Value);
    fields.add(field4);

    field5.setName("DateLabel");
    field5.setUsage(cfx.FieldUsage.Label);
    fields.add(field5);

    chart1.setDataSource(result)
    chart1.create(divHolder);
    chart1.getAxisX().setStaggered(false);
    chart1.getAxisX().setLabelAngle(20);

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...