Jump to content
JChartFX Community
  • 0

Shadows disabled: tooltips not appearing on single serie line chart


flapane

Question

Hi,

I've noticed that the tooltips don't appear on single-serie line charts if I disable the shadows

            series1.setGallery(cfx.Gallery.Lines);
            series1.getGalleryAttributes().setTemplate("LineBasic");

 

This happens on both IE10 and FE33.

On the other hand, while working without tooltips on IE and FF, the code totally fails on jsfiddle.

Any hints?

Thanks

			var mychart = new cfx.Chart();
			var titles = mychart.getTitles();
			var title = new cfx.TitleDockable();
			title.setText("title");
			titles.add(title);
            mychart.getData().setSeries(1);
			mychart.getAxisY().getDataFormat().setDecimals(1);
			mychart.getLegendBox().setDock(cfx.DockArea.Bottom);
            var series1 = mychart.getSeries().getItem(0);

            var data = [
            { "Anno": "2000", "% value": 0.32 },
			{ "Anno": "2001", "% value": 5.8 },
			{ "Anno": "2002", "% value": 9.3 },
			{ "Anno": "2003", "% value": 7.1 },
			{ "Anno": "2004", "% value": 7.4 },
			{ "Anno": "2005", "% value": 7.4 },
			{ "Anno": "2006", "% value": 8.9 },
			{ "Anno": "2007", "% value": 11.5 },
			{ "Anno": "2008", "% value": 13.95 },
			{ "Anno": "2009", "% value": 18.54 },
			{ "Anno": "2010", "% value": 17.39 },
			{ "Anno": "2011", "% value": 18.05 },
			{ "Anno": "2012", "% value": 21.25 },
			{ "Anno": "2013", "% value": 20.74 },
            ];
            mychart.setDataSource(data);
            var divHolder = document.getElementById('ChartDiv1');
			//series1.setGallery(cfx.Gallery.Lines);
			//series1.getGalleryAttributes().setTemplate("LineBasic");
			mychart.create(divHolder);
  • Like 1
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

There is a bug in our code (which should be fixed on our next public build) but you can workaround it by setting the Gallery and GalleryAttributes globally instead of on a per-series basis, e.g.

 

mychart.setGallery(cfx.Gallery.Lines);

mychart.getGalleryAttributes().setTemplate("LineBasic");
 

 

JuanC

Link to comment
Share on other sites

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...