Hybrid View
-
15 Oct 2012 11:08 PM #1
ST 2.1 RC2 - Line chart fill cannot be disabled
ST 2.1 RC2 - Line chart fill cannot be disabled
When creating a chart with a line series that has a colors definition and fill: false, the fill is still set.
e.g.
Ext.chart.series.Series - commenting out the line below in an override and it works again.Code:getNewSeries: function (colors, fields, index, field) { var t = Ext.Array.filter(fields, function (f) { return f.name === field; })[0].header; return { type: 'line', title: t, xField: 'c0', yField: field, style: { stroke: colors[index], miterLimit: 3, lineCap: 'miter', lineWidth: 2 }, smooth: true, fill: false, showInLegend: true, marker: { type: 'circle', radius: 4, fill: colors[index] } }; }
Code:updateColors: function (colorSet) { // this.setSubStyle({fillStyle: colorSet}); this.doUpdateStyles(); }
-
16 Oct 2012 5:15 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
According to the docs fill is not a config of the line series. Using the kitchensink the fill is within the style config object.
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.
-
16 Oct 2012 5:17 AM #3
Looking at the docs, clicking code editor on Ext.chart.series.Line, the second line has fill:true
Also underneath it states:
The second series has fill = true which means that the line will also have an area below it of the same color.
-
16 Oct 2012 5:22 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
If you are looking at http://docs.sencha.com/touch-charts/1-0/#!/api then you are looking at the wrong product. Touch Charts are not a valid product, charts are now build within the framework in 2.1.0 so if you look at docs that come in the 2.1.0 releases you will see that the Line series does not have a fill config.
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.
-
16 Oct 2012 5:25 AM #5
Here's a screenshot of the documentation I have from the 2.1rc2 release
Ext.chart.series.Line - Sencha Docs - Touch 2.jpg
-
16 Oct 2012 5:34 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
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.
-
26 Dec 2012 11:13 AM #7
Thanks for the report! I have opened a bug in our bug tracker.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-3858
in
Sprint 30.


Reply With Quote