flapane Posted November 5, 2014 Report Share Posted November 5, 2014 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); 1 Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted November 7, 2014 Report Share Posted November 7, 2014 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 Quote Link to comment Share on other sites More sharing options...
0 flapane Posted November 9, 2014 Author Report Share Posted November 9, 2014 Thanks, it did the trick. Quote Link to comment Share on other sites More sharing options...
Question
flapane
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
Link to comment
Share on other sites
2 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.