-
28 Feb 2012 7:24 AM #1
Possible Bug, Legend toggle function doesn't work without shadow on Scatter Chart
Possible Bug, Legend toggle function doesn't work without shadow on Scatter Chart
Hi
This is my chart, on Ext js 4.0.7:
In this configuration, when i click on label corrispond to scatter series the marker hide and show correctly, if i setCode:var chartCmp = new Ext.chart.Chart({ height: 500, width: 700, shadow: true, animate: false, legend: { position: 'bottom' }, store: MyStore, axes: [{ type: 'Numeric', position: 'bottom', fields: ['QUANTITY'], title: 'Quantity (in ton)' },{ type: 'Numeric', position: 'left', fields: [ 'VALUE'], title: 'Value (in 1000 Euros)'} ], series: [{ type: 'scatter', animate: false, axis: 'bottom', xField: 'QUANTITY', yField: 'VALUE', markerConfig: { type: 'circle', size: 5, fill: '#0000FF' }, style: { stroke: '#0000FF' }, }] });
After i click the first time on label to hide the markers of the series, the other times that i try to click to show markers, them remain hidden.Code:shadow: false,
Thank you for your help.
Best Regards,
Daniele Palermo
-
28 Feb 2012 6:52 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
Did you mark this as [OPEN]? This isn't the way we (Sencha) marks it as open is why I am asking.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
29 Feb 2012 4:20 AM #3
Sorry, i thought that 'Open' in the title means that it's will be a possible bug
I corrected the title
Best Regards
-
21 Aug 2012 2:29 AM #4
Confirmed
Confirmed
Hi,
I stumbled upon this bug as well. The bug has not been fixed in version 4.1.0.
Enabling labels will cause the labels to re-emerge, but the markers remain hidden.
Is there are work around available, other than enabling the shadows?
- Thanks
Jimmy
-
21 Aug 2012 2:43 AM #5
Please post a test case.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
21 Aug 2012 4:38 AM #6
Test case
Test case
Here you go - complete runnable example:
Code:<DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Test</title> <meta http-equiv="content-type" content="text/html;charset=UTF-8"> <link rel="stylesheet" type="text/css" href="http://dev.sencha.com/deploy/ext-4.1.0-gpl/resources/css/ext-all.css"> <script type="text/javascript" src="http://dev.sencha.com/deploy/ext-4.1.0-gpl/ext-all.js"></script> </head> <body> <script type="text/javascript"> Ext.onReady(function() { Ext.create("Ext.chart.Chart", { "width":800, "height":500, "renderTo":Ext.getBody(), "animate":{"easing":"ease", "duration":750}, "insetPadding":20, "theme": "Base", "store":Ext.create("Ext.data.JsonStore", { fields: ["Title","Initialiseringsfase"], data: [ {"Title":"Bananer","Initialiseringsfase":-4}, {"Title":"Æbler","Initialiseringsfase":3}, {"Title":"Jordbær","Initialiseringsfase":-7} ] }), "series": [ { "type":"scatter", "xField":"Title", "yField":"Initialiseringsfase", "showInLegend":true, "markerConfig":{"radius":7,"size":7,"type":"triangle"}, "showMarkers":true, "label":{"display":"middle","field":"Initialiseringsfase","font":"12px Verdana","fill":"black","color":"#000","minMargin":50,"orientation":"horizontal"} } ], "axes": [ { "type":"Category", "position":"bottom", "fields":["Title"], "grid":true, "title":null, "label":{"font":"12px Verdana","rotate":{"degrees":90}} }, {"type":"Numeric", "position":"left", "fields":["Projektledelsesfase","Overdragelsesfase","Initialiseringsfase"], "grid":true, "title":null, "label":{"font":"12px Verdana","rotate":{"degrees":0}}, "minimum":-40, "maximum":40, "majorTickSteps":3 } ], "legend":{"position":"right","labelFont":"12px Verdana"}, "shadow":false }); }); </script> </body> </html>
-
21 Jan 2013 3:57 AM #7
Any updates on this?
Any updates on this?
Hi,
Will this bug be fixed in future versions of Ext JS? Could we please have an update?
- Thanks
Jimmy
-
11 Feb 2013 8:04 AM #8
Problem still here in 4.1.1 and no easy way to disable legend click functionnality.
Any ETA for the bugfix ?
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote