-
14 Nov 2012 8:18 AM #1
Chart ColumnSeries yField issue
Chart ColumnSeries yField issue
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.3
- IE9
- Chrome
- <!DOCTYPE html>
- If yField is set up using a string, not an array of strings, then there is the first letter only in the Tip renderer. (Obviously, there is yField[0]. It needs to check there - it is an array or a string.)
- Move the mouse over the columns
- "someYField" in the tip
- Just "s" in the tip
Code:<!DOCTYPE html> <html> <head> <title>Chart yfield</title> <link type="text/css" rel="stylesheet" href="../resources/css/ext-all.css" /> <script type="text/javascript" src="../ext-all-debug.js"></script> <script type="text/javascript"> Ext.onReady(function () { Ext.create("Ext.chart.Chart", { renderTo: Ext.getBody(), height: 400, width: 400, store: { fields: [{ name: "x" }, { name: "someYField" }], storeId: "ctl03", autoLoad: true, proxy: { type: "memory", data: [{ x: 25, someYField: 25 }, { x: 50, someYField: 50 }, { x: 100, someYField: 100 }] } }, axes: [{ position: "bottom", title: "X", fields: ["x"], type: "Numeric" }, { position: "left", title: "Y", fields: ["someYField"], type: "Numeric" }], series: [{ type: "column", xField: "x", yField: "someYField", tips: { xtype: "tooltip", trackMouse: true, renderer: function (storeItem, item) { this.setTitle(item.yField); } } }] }); }); </script> </head> <body> </body> </html>
-
15 Nov 2012 6:46 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
Thanks for the report.
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.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-7759
in
4.2.0.


Reply With Quote