-
26 Mar 2012 8:17 AM #1
Scatter Chart problem upon adding min and max values
Scatter Chart problem upon adding min and max values
REQUIRED INFORMATION
Ext version tested:- Ext 4.0.7
- Chrome 17.0.963.79 m
- FF 10.02 (firebug 1.9.1 installed)
- xhtml11.dtd
- On Scatter Chart, once adding minimum and/or maximum axes values the x position of the circle always starts from minimum value and ends at the maximum value, causing the circle to appear on the wrong position, the y position is working as expected.
- Just run the Scatter Chart with any data and try to change the minimum and maximum values see that the circles x position is always set to the changed values and not to the real value
- A gap from left and right, top and bottom
- The gap appears only at the top and bottom
HELPFUL INFORMATIONCode:// store data data.push({name: "first", data1: 100, data2: 70, data3: 10, data4: "#f00"}); data.push({name: "second", data1: 130, data2: 150, data3: 20, data4: "#0f0"}); data.push({name: "third", data1: 220, data2: 220, data3: 10, data4: "#00f"}); data.push({name: "forth", data1: 120, data2: 150, data3: 25, data4: "#f0f"}); /* LEGEND: */ /* name = name (any text) data1 = xpos data2 = ypos data3 = circle radius data4 = circle color */ Ext.require('Ext.chart.*'); Ext.require(['Ext.Window', 'Ext.fx.target.Sprite', 'Ext.layout.container.Fit']); Ext.onReady(function () { var chart = Ext.create('Ext.chart.Chart', { id: 'chartCmp', animate: true, store: store1, smooth: true, style: 'background:#FFF', insetPadding: 10, axes: [{ type: 'Numeric', title: 'Application Quality', position: 'left', fields: ['data2'], grid: true, minorTickSteps: 1, minimum: 0, maximum: 300 }, { type: 'Numeric', title: 'Rating', position: 'bottom', fields: ['data1'], grid: true, minimum: 0, maximum: 300 }], series: [{ type: 'scatter', axis: 'left', xField: 'data1', yField: 'data2', highlight: false, tips: { trackMouse: true, width: 60, height: 28, renderer: function(storeItem, item) { this.setTitle(storeItem.get('data1') + "/" + storeItem.get('data2')); } }, markerConfig: { type: 'circle', radius: 20,//default radius }, //renderer: calcRadius('data3') }] }); var win = Ext.create('Ext.Window', { id: 'myWin', width: 400, height: 400, hidden: false, maximizable: true, title: '-- Scatter Chart Renderer --', renderTo: Ext.getBody(), layout: 'fit', items: [chart] }); });
Screenshot or Video:- no added values
no_added_values.png - with added values
with_added_values.png
note that x pos of red and purple remained the same but the y pos was changed as expected
none
Possible fix:
not provided
Additional CSS used:
only default ext-all.css
Operating System:
win7 64bitLast edited by chaimon; 27 Mar 2012 at 4:45 AM. Reason: mismatch
-
26 Mar 2012 10:21 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
Can you check against 4.1.0 RC1?
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.
-
27 Mar 2012 12:33 AM #3
-
9 Apr 2012 11:56 AM #4
any fix/workaround for this? thanks.
You found a bug! We've classified it as
EXTJSIV-5719
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote