-
16 Sep 2012 11:04 PM #1
[4.1.1 GA] LineSeries label display option doesn't work well
[4.1.1 GA] LineSeries label display option doesn't work well
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.1 GA
- Chrome
- FireFox
- IE9
- The label "display" option doesn't work well with LineSeries. I didn't test with another type of series.
- I can't see any difference between the "insideEnd", "insideStart", "middle", "outside" options. They all renders the labels behind the markers. However, I am not 100% sure what exactly effect they should produce because of the lack of the details in the Docs.
- The "over" option renders the labels above the chart. But I would expected the labels to be rendered over the markers.
- The "rotate" and "under"options doesn't render the labels well. Please look at the screenshots or run the sample to see.
- Please just run the sample.
- A possibility to manage how the labels are displayed.
- Please see the screenshots.
HELPFUL INFORMATIONCode:<html> <head> <title>Chart series label display</title> <link type="text/css" rel="stylesheet" href="../resources/css/ext-all.css" /> <script type="text/javascript" src="../ext-all.js"></script> <script type="text/javascript"> var mainCt; var addChart = function (labelDisplay) { var p = Ext.create("Ext.panel.Panel", { title: labelDisplay, height: 400, width: 400, layout: "fit", items: [{ xtype: "chart", axes: [{ position: "bottom", title: "X", fields: ["x"], type: "Numeric" }, { position: "left", title: "Y", fields: ["y"], type: "Numeric" }], series: [{ type: "line", title: "Chart", xField: "x", yField: "y", label: { field: "y", display: labelDisplay } }], store: { fields: [{ name: "x" }, { name: "y" }], autoLoad: true, proxy: { type: 'memory', data: [{ "x": 0, "y": 0 }, { "x": 50, "y": 50 }, { "x": 100, "y": 100 }] } } }] }); mainCt.add(p); }; Ext.onReady(function () { mainCt = Ext.create("Ext.container.Container", { renderTo: Ext.getBody(), layout: "column" }); addChart("insideEnd"); addChart("insideStart"); addChart("middle"); addChart("outside"); addChart("over"); addChart("rotate"); addChart("under"); }); </script> </head> <body> </body> </html>
Screenshots:- How it looks.
-
17 Sep 2012 5:00 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,710
- Vote Rating
- 436
Thanks for the report! I have opened a bug in our bug tracker.
-
17 Sep 2012 8:37 AM #3
Hi Mitchell,
Thank you!
Again, I didn't get an email notification
Could you suggest something to try? I checked my settings, there is "Instantly, using email".
-
21 Nov 2012 5:57 AM #4
Is there a workaround for this bug?
First I would like to thank you for your time and knowledge
Win 7 Ext JS 4.1.3 IE(6-9), FF17
-
21 Nov 2012 6:00 AM #5
-
25 Apr 2013 10:32 PM #6
You found a bug! We've classified it as
EXTJSIV-7260
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote