Jump to content
JChartFX Community
  • 0

turning off tooltip


john

Question

hi im new to using jchartfx, i've been trying to figure out how to turn off the tooltip feature, and ive tried to use the chart1.getToolTips().setEnabled(false) code but still no luck. heres my code.

 function loadChart(){ 

           chart1 = new cfx.Chart();

           chart1.setBorder(null);

           chart1.setPlotAreaColor("#FFFFFF");

           chart1.setBackColor("#FFFFFF");

           chart1.getToolTips().setEnabled(false);

           

         chart1.getSeries().getItem(1).setColor("#FF5C00");

         

            chart1.getData().setSeries(3);

            chart1.getAxisY().setMin(0);

            chart1.getAxisY().setMax(data_test[0].interest);

            chart1.getToolTips().setEnabled(false);       // get rid of tooltips

            

            

            var series1 = chart1.getSeries().getItem(0);

            var series2 = chart1.getSeries().getItem(1);

            var series3 = chart1.getSeries().getItem(2);

            

            series1.setGallery(cfx.Gallery.CurveArea);

            series1.setMarkerShape(cfx.MarkerShape.None);

       series1.getLine().setWidth(2);

            series2.setGallery(cfx.Gallery.CurveArea);

            series2.setMarkerShape(cfx.MarkerShape.None);

            series2.getLine().setWidth(2);

            series3.setGallery(cfx.Gallery.CurveArea);

            series3.setMarkerShape(cfx.MarkerShape.None);

            series3.getLine().setWidth(2);

 

 chart1.getSeries().getItem(0).setVisible(false);

            

     

            chart1.setDataSource(data_test);

              

        var divHolder = document.getElementById('ChartDiv'); 

        chart1.create(divHolder); 

      }     









any help would be greatly appreciated.

Link to comment
Share on other sites

3 answers 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...
×
×
  • Create New...